@primer/react 38.47.0-rc.6f1dd6463 → 38.47.0-rc.a4f004c4f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/ActionBar/ActionBar.d.ts +1 -2
- package/dist/ActionBar/ActionBar.js +8 -9
- package/dist/ActionBar/ActionBar.module.css.js +1 -2
- package/dist/ActionBar/index.d.ts +1 -3
- package/dist/ActionBar/index.js +1 -2
- package/dist/ActionList/ActionList.module.css.js +1 -2
- package/dist/ActionList/ActionListContainerContext.js +1 -2
- package/dist/ActionList/Description.d.ts +1 -2
- package/dist/ActionList/Description.js +2 -3
- package/dist/ActionList/Divider.d.ts +1 -2
- package/dist/ActionList/Divider.js +1 -2
- package/dist/ActionList/Group.d.ts +2 -3
- package/dist/ActionList/Group.js +3 -4
- package/dist/ActionList/Group.module.css.js +1 -2
- package/dist/ActionList/GroupContext.js +1 -2
- package/dist/ActionList/GroupHeadingTrailingAction.d.ts +1 -2
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -2
- package/dist/ActionList/Heading.d.ts +1 -2
- package/dist/ActionList/Heading.js +4 -5
- package/dist/ActionList/Heading.module.css.js +1 -2
- package/dist/ActionList/Item.js +11 -12
- package/dist/ActionList/LinkItem.d.ts +1 -2
- package/dist/ActionList/LinkItem.js +3 -4
- package/dist/ActionList/List.js +11 -12
- package/dist/ActionList/Selection.js +5 -6
- package/dist/ActionList/TrailingAction.d.ts +1 -2
- package/dist/ActionList/TrailingAction.js +2 -3
- package/dist/ActionList/Visuals.d.ts +1 -2
- package/dist/ActionList/Visuals.js +2 -3
- package/dist/ActionList/index.d.ts +7 -7
- package/dist/ActionList/index.js +7 -8
- package/dist/ActionList/shared.d.ts +1 -2
- package/dist/ActionList/shared.js +1 -2
- package/dist/ActionMenu/ActionMenu.d.ts +3 -4
- package/dist/ActionMenu/ActionMenu.js +8 -9
- package/dist/ActionMenu/ActionMenu.module.css.js +1 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +2 -3
- package/dist/AnchoredOverlay/AnchoredOverlay.js +7 -8
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -2
- package/dist/Autocomplete/Autocomplete.d.ts +3 -4
- package/dist/Autocomplete/Autocomplete.js +2 -3
- package/dist/Autocomplete/AutocompleteContext.js +1 -2
- package/dist/Autocomplete/AutocompleteInput.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteInput.js +3 -4
- package/dist/Autocomplete/AutocompleteMenu.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteMenu.js +5 -6
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +1 -2
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteOverlay.js +3 -4
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +1 -2
- package/dist/Avatar/Avatar.d.ts +1 -2
- package/dist/Avatar/Avatar.js +0 -1
- package/dist/Avatar/Avatar.module.css.js +1 -2
- package/dist/AvatarStack/AvatarStack.d.ts +1 -2
- package/dist/AvatarStack/AvatarStack.js +1 -2
- package/dist/AvatarStack/AvatarStack.module.css.js +1 -2
- package/dist/Banner/Banner.d.ts +1 -2
- package/dist/Banner/Banner.js +5 -6
- package/dist/Banner/Banner.module.css.js +1 -2
- package/dist/Banner/index.d.ts +2 -3
- package/dist/Banner/index.js +1 -2
- package/dist/BaseStyles.d.ts +0 -2
- package/dist/BaseStyles.js +1 -2
- package/dist/BaseStyles.module.css.js +1 -2
- package/dist/Blankslate/Blankslate.d.ts +1 -2
- package/dist/Blankslate/Blankslate.js +2 -3
- package/dist/Blankslate/Blankslate.module.css.js +1 -2
- package/dist/Blankslate/BlankslateContext.js +1 -2
- package/dist/Blankslate/index.d.ts +1 -2
- package/dist/Blankslate/index.js +1 -2
- package/dist/BranchName/BranchName.d.ts +1 -2
- package/dist/BranchName/BranchName.js +2 -3
- package/dist/BranchName/BranchName.module.css.js +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +6 -7
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -2
- package/dist/Button/Button.d.ts +2 -3
- package/dist/Button/Button.js +1 -2
- package/dist/Button/ButtonBase.d.ts +1 -2
- package/dist/Button/ButtonBase.js +3 -4
- package/dist/Button/ButtonBase.module.css.js +1 -2
- package/dist/Button/IconButton.d.ts +2 -3
- package/dist/Button/IconButton.js +3 -4
- package/dist/Button/LinkButton.d.ts +2 -3
- package/dist/Button/LinkButton.js +1 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/types.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.js +3 -4
- package/dist/ButtonGroup/ButtonGroup.module.css.js +1 -2
- package/dist/Card/Card.d.ts +1 -2
- package/dist/Card/Card.js +3 -4
- package/dist/Card/Card.module.css.js +1 -2
- package/dist/Card/index.d.ts +1 -2
- package/dist/Card/index.js +1 -2
- package/dist/Checkbox/Checkbox.d.ts +2 -3
- package/dist/Checkbox/Checkbox.js +7 -8
- package/dist/Checkbox/Checkbox.module.css.js +1 -2
- package/dist/Checkbox/shared.module.css.js +1 -2
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.js +6 -7
- package/dist/CheckboxGroup/CheckboxGroupContext.js +1 -2
- package/dist/CircleBadge/CircleBadge.d.ts +0 -2
- package/dist/CircleBadge/CircleBadge.js +1 -2
- package/dist/CircleBadge/CircleBadge.module.css.js +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -2
- package/dist/ConfirmationDialog/useConfirm.d.ts +1 -2
- package/dist/ConfirmationDialog/useConfirm.js +1 -2
- package/dist/CounterLabel/CounterLabel.d.ts +1 -2
- package/dist/CounterLabel/CounterLabel.js +1 -2
- package/dist/CounterLabel/CounterLabel.module.css.js +1 -2
- package/dist/DataTable/DataTable.d.ts +5 -5
- package/dist/DataTable/DataTable.js +32 -30
- package/dist/DataTable/ErrorDialog.d.ts +1 -2
- package/dist/DataTable/ErrorDialog.js +1 -2
- package/dist/DataTable/Pagination.d.ts +1 -2
- package/dist/DataTable/Pagination.js +2 -3
- package/dist/DataTable/Pagination.module.css.js +1 -2
- package/dist/DataTable/Table.d.ts +3 -4
- package/dist/DataTable/Table.js +4 -5
- package/dist/DataTable/Table.module.css.js +1 -2
- package/dist/DataTable/TableBulkActions.d.ts +1 -2
- package/dist/DataTable/TableBulkActions.js +2 -3
- package/dist/DataTable/TableBulkActions.module.css.js +1 -2
- package/dist/DataTable/TableGroup.d.ts +3 -2
- package/dist/DataTable/TableGroup.js +195 -171
- package/dist/DataTable/TableGroupContext.js +1 -2
- package/dist/DataTable/column.d.ts +1 -2
- package/dist/DataTable/column.js +1 -2
- package/dist/DataTable/index.d.ts +4 -5
- package/dist/DataTable/index.js +3 -4
- package/dist/DataTable/row.d.ts +0 -2
- package/dist/DataTable/sorting.d.ts +0 -2
- package/dist/DataTable/sorting.js +1 -2
- package/dist/DataTable/useTable.js +2 -3
- package/dist/DataTable/utils.d.ts +0 -2
- package/dist/Details/Details.d.ts +1 -2
- package/dist/Details/Details.js +2 -3
- package/dist/Details/Details.module.css.js +1 -2
- package/dist/Dialog/Dialog.d.ts +2 -3
- package/dist/Dialog/Dialog.js +7 -8
- package/dist/Dialog/Dialog.module.css.js +1 -2
- package/dist/Dialog/DialogContext.js +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -2
- package/dist/FeatureFlags/FeatureFlagContext.js +1 -2
- package/dist/FeatureFlags/FeatureFlagScope.d.ts +0 -2
- package/dist/FeatureFlags/FeatureFlagScope.js +1 -2
- package/dist/FeatureFlags/FeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/FeatureFlags.js +2 -3
- package/dist/FeatureFlags/useFeatureFlag.d.ts +0 -2
- package/dist/FeatureFlags/useFeatureFlag.js +1 -2
- package/dist/FilteredActionList/FilteredActionList.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionList.js +11 -12
- package/dist/FilteredActionList/FilteredActionList.module.css.js +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +1 -2
- package/dist/FilteredActionList/constants.d.ts +0 -2
- package/dist/FilteredActionList/constants.js +1 -2
- package/dist/FilteredActionList/index.d.ts +2 -3
- package/dist/FilteredActionList/index.js +3 -4
- package/dist/FilteredActionList/types.d.ts +3 -4
- package/dist/FilteredActionList/useAnnouncements.js +1 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.js +1 -2
- package/dist/Flash/Flash.module.css.js +1 -2
- package/dist/FormControl/FormControl.d.ts +1 -2
- package/dist/FormControl/FormControl.js +8 -9
- package/dist/FormControl/FormControl.module.css.js +1 -2
- package/dist/FormControl/FormControlCaption.d.ts +1 -2
- package/dist/FormControl/FormControlCaption.js +2 -3
- package/dist/FormControl/FormControlCaption.module.css.js +1 -2
- package/dist/FormControl/FormControlLabel.d.ts +1 -2
- package/dist/FormControl/FormControlLabel.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +1 -2
- package/dist/FormControl/_FormControlContext.d.ts +1 -2
- package/dist/FormControl/_FormControlContext.js +1 -2
- package/dist/FormControl/_FormControlContextProvider.js +1 -2
- package/dist/FormControl/_FormControlValidation.d.ts +1 -2
- package/dist/FormControl/_FormControlValidation.js +1 -2
- package/dist/FormControl/index.d.ts +3 -3
- package/dist/Header/Header.d.ts +1 -2
- package/dist/Header/Header.js +1 -2
- package/dist/Header/Header.module.css.js +1 -2
- package/dist/Heading/Heading.d.ts +1 -2
- package/dist/Heading/Heading.js +2 -3
- package/dist/Heading/Heading.module.css.js +1 -2
- package/dist/Hidden/Hidden.d.ts +1 -2
- package/dist/Hidden/Hidden.js +1 -2
- package/dist/Hidden/Hidden.module.css.js +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.js +1 -2
- package/dist/InlineMessage/InlineMessage.module.css.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.d.ts +1 -2
- package/dist/KeybindingHint/KeybindingHint.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.module.css.js +1 -2
- package/dist/KeybindingHint/components/Chord.js +1 -2
- package/dist/KeybindingHint/components/Chord.module.css.js +1 -2
- package/dist/KeybindingHint/components/Key.js +1 -2
- package/dist/KeybindingHint/components/Sequence.js +1 -2
- package/dist/KeybindingHint/components/utils.js +1 -2
- package/dist/KeybindingHint/key-names.js +1 -2
- package/dist/KeybindingHint/platform.d.ts +0 -2
- package/dist/KeybindingHint/platform.js +1 -2
- package/dist/KeybindingHint/props.d.ts +0 -2
- package/dist/KeybindingHint/utils.d.ts +1 -2
- package/dist/KeybindingHint/utils.js +1 -2
- package/dist/Label/Label.d.ts +1 -2
- package/dist/Label/Label.js +1 -2
- package/dist/Label/Label.module.css.js +1 -2
- package/dist/Label/index.js +1 -2
- package/dist/LabelGroup/LabelGroup.d.ts +1 -2
- package/dist/LabelGroup/LabelGroup.js +3 -4
- package/dist/LabelGroup/LabelGroup.module.css.js +1 -2
- package/dist/Link/Link.d.ts +2 -3
- package/dist/Link/Link.js +3 -4
- package/dist/Link/Link.module.css.js +1 -2
- package/dist/NavList/NavList.d.ts +4 -5
- package/dist/NavList/NavList.js +8 -9
- package/dist/NavList/NavList.module.css.js +1 -2
- package/dist/Octicon/Octicon.d.ts +1 -2
- package/dist/Octicon/Octicon.js +1 -2
- package/dist/Overlay/Overlay.d.ts +2 -3
- package/dist/Overlay/Overlay.js +3 -4
- package/dist/Overlay/Overlay.module.css.js +1 -2
- package/dist/Overlay/constants.d.ts +0 -2
- package/dist/Overlay/constants.js +1 -2
- package/dist/PageHeader/PageHeader.d.ts +4 -5
- package/dist/PageHeader/PageHeader.js +7 -8
- package/dist/PageHeader/PageHeader.module.css.js +1 -2
- package/dist/PageLayout/DragHandle.d.ts +1 -2
- package/dist/PageLayout/DragHandle.js +1 -2
- package/dist/PageLayout/PageLayout.d.ts +2 -3
- package/dist/PageLayout/PageLayout.js +3 -4
- package/dist/PageLayout/PageLayout.module.css.js +1 -2
- package/dist/PageLayout/index.d.ts +1 -1
- package/dist/PageLayout/paneUtils.js +1 -2
- package/dist/PageLayout/usePaneWidth.d.ts +1 -2
- package/dist/PageLayout/usePaneWidth.js +28 -27
- package/dist/Pagehead/Pagehead.d.ts +1 -2
- package/dist/Pagehead/Pagehead.js +1 -2
- package/dist/Pagehead/Pagehead.module.css.js +1 -2
- package/dist/Pagination/Pagination.d.ts +2 -3
- package/dist/Pagination/Pagination.js +2 -3
- package/dist/Pagination/Pagination.module.css.js +1 -2
- package/dist/Pagination/index.js +1 -2
- package/dist/Pagination/model.d.ts +0 -2
- package/dist/Pagination/model.js +1 -2
- package/dist/Popover/Popover.d.ts +1 -2
- package/dist/Popover/Popover.js +3 -4
- package/dist/Popover/Popover.module.css.js +1 -2
- package/dist/Portal/Portal.d.ts +1 -2
- package/dist/Portal/Portal.js +1 -2
- package/dist/Portal/PortalContext.d.ts +1 -2
- package/dist/Portal/PortalContext.js +1 -2
- package/dist/Portal/index.js +1 -2
- package/dist/Portal/portalRoot.d.ts +0 -2
- package/dist/Portal/portalRoot.js +1 -2
- package/dist/ProgressBar/ProgressBar.d.ts +1 -2
- package/dist/ProgressBar/ProgressBar.js +1 -2
- package/dist/ProgressBar/ProgressBar.module.css.js +1 -2
- package/dist/ProgressBar/index.d.ts +1 -2
- package/dist/ProgressBar/index.js +1 -2
- package/dist/Radio/Radio.d.ts +1 -2
- package/dist/Radio/Radio.js +1 -2
- package/dist/Radio/Radio.module.css.js +1 -2
- package/dist/RadioGroup/RadioGroup.d.ts +2 -3
- package/dist/RadioGroup/RadioGroup.js +4 -5
- package/dist/RadioGroup/RadioGroupContext.js +1 -2
- package/dist/RelativeTime/RelativeTime.d.ts +1 -2
- package/dist/RelativeTime/RelativeTime.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.d.ts +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControl.d.ts +2 -3
- package/dist/SegmentedControl/SegmentedControl.js +9 -10
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.js +2 -3
- package/dist/SegmentedControl/SegmentedControlActionContext.js +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.js +2 -3
- package/dist/SegmentedControl/SegmentedControlDivider.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.js +2 -3
- package/dist/SegmentedControl/index.d.ts +3 -3
- package/dist/Select/Select.d.ts +2 -3
- package/dist/Select/Select.js +1 -2
- package/dist/Select/Select.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanel.d.ts +2 -3
- package/dist/SelectPanel/SelectPanel.js +13 -14
- package/dist/SelectPanel/SelectPanel.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanelMessage.d.ts +1 -2
- package/dist/SelectPanel/SelectPanelMessage.js +1 -2
- package/dist/SelectPanel/index.d.ts +1 -1
- package/dist/SideNav.d.ts +1 -2
- package/dist/SideNav.js +1 -2
- package/dist/SideNav.module.css.js +1 -2
- package/dist/Skeleton/SkeletonBox.d.ts +1 -2
- package/dist/Skeleton/SkeletonBox.js +1 -2
- package/dist/Skeleton/SkeletonBox.module.css.js +1 -2
- package/dist/Skeleton/skeleton.module.css.js +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.js +2 -3
- package/dist/SkeletonAvatar/SkeletonAvatar.module.css.js +1 -2
- package/dist/SkeletonText/SkeletonText.d.ts +1 -2
- package/dist/SkeletonText/SkeletonText.js +2 -3
- package/dist/SkeletonText/SkeletonText.module.css.js +1 -2
- package/dist/Spinner/Spinner.d.ts +1 -2
- package/dist/Spinner/Spinner.js +1 -2
- package/dist/Spinner/Spinner.module.css.js +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.js +1 -2
- package/dist/Stack/Stack.d.ts +1 -2
- package/dist/Stack/Stack.js +1 -2
- package/dist/Stack/Stack.module.css.js +1 -2
- package/dist/Stack/index.d.ts +2 -3
- package/dist/Stack/index.js +1 -2
- package/dist/StateLabel/StateLabel.d.ts +1 -2
- package/dist/StateLabel/StateLabel.js +1 -2
- package/dist/StateLabel/StateLabel.module.css.js +1 -2
- package/dist/SubNav/SubNav.d.ts +1 -2
- package/dist/SubNav/SubNav.js +1 -2
- package/dist/SubNav/SubNav.module.css.js +1 -2
- package/dist/TabNav/TabNav.d.ts +1 -2
- package/dist/TabNav/TabNav.js +1 -2
- package/dist/TabNav/TabNav.module.css.js +1 -2
- package/dist/Text/Text.d.ts +1 -2
- package/dist/Text/Text.js +1 -2
- package/dist/Text/Text.module.css.js +1 -2
- package/dist/TextInput/TextInput.d.ts +2 -3
- package/dist/TextInput/TextInput.js +10 -11
- package/dist/TextInput/TextInput.module.css.js +1 -2
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +2 -3
- package/dist/TextInputWithTokens/TextInputWithTokens.js +4 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +1 -2
- package/dist/Textarea/TextArea.module.css.js +1 -2
- package/dist/Textarea/Textarea.d.ts +2 -3
- package/dist/Textarea/Textarea.js +5 -6
- package/dist/ThemeContext.d.ts +1 -2
- package/dist/ThemeContext.js +1 -2
- package/dist/ThemeProvider.d.ts +1 -2
- package/dist/ThemeProvider.js +2 -3
- package/dist/Timeline/Timeline.d.ts +1 -2
- package/dist/Timeline/Timeline.js +1 -2
- package/dist/Timeline/Timeline.module.css.js +1 -2
- package/dist/Timeline/constants.d.ts +0 -2
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +1 -2
- package/dist/ToggleSwitch/ToggleSwitch.js +3 -4
- package/dist/ToggleSwitch/ToggleSwitch.module.css.js +1 -2
- package/dist/Token/IssueLabelToken.d.ts +2 -3
- package/dist/Token/IssueLabelToken.js +2 -3
- package/dist/Token/IssueLabelToken.module.css.js +1 -2
- package/dist/Token/Token.d.ts +2 -3
- package/dist/Token/Token.js +3 -4
- package/dist/Token/Token.module.css.js +1 -2
- package/dist/Token/TokenBase.d.ts +1 -2
- package/dist/Token/TokenBase.js +1 -2
- package/dist/Token/TokenBase.module.css.js +1 -2
- package/dist/Token/_RemoveTokenButton.js +1 -2
- package/dist/Token/_RemoveTokenButton.module.css.js +1 -2
- package/dist/Token/_TokenTextContainer.js +1 -2
- package/dist/Token/_TokenTextContainer.module.css.js +1 -2
- package/dist/Token/constants.d.ts +0 -2
- package/dist/Token/constants.js +1 -2
- package/dist/Token/utils.js +1 -2
- package/dist/Tooltip/Tooltip.d.ts +1 -2
- package/dist/Tooltip/Tooltip.js +2 -3
- package/dist/Tooltip/Tooltip.module.css.js +1 -2
- package/dist/Tooltip/TooltipContext.js +1 -2
- package/dist/TooltipV2/Tooltip.d.ts +2 -3
- package/dist/TooltipV2/Tooltip.js +8 -9
- package/dist/TooltipV2/Tooltip.module.css.js +1 -2
- package/dist/TooltipV2/TooltipContext.js +1 -2
- package/dist/TopicTag/TopicTag.d.ts +1 -2
- package/dist/TopicTag/TopicTag.js +1 -2
- package/dist/TopicTag/TopicTag.module.css.js +1 -2
- package/dist/TopicTag/TopicTagGroup.d.ts +1 -2
- package/dist/TopicTag/TopicTagGroup.js +1 -2
- package/dist/TopicTag/TopicTagGroup.module.css.js +1 -2
- package/dist/TopicTag/index.d.ts +1 -2
- package/dist/TopicTag/index.js +1 -2
- package/dist/TreeView/TreeView.d.ts +1 -2
- package/dist/TreeView/TreeView.js +16 -17
- package/dist/TreeView/TreeView.module.css.js +1 -2
- package/dist/TreeView/shared.js +1 -2
- package/dist/TreeView/useRovingTabIndex.d.ts +1 -2
- package/dist/TreeView/useRovingTabIndex.js +1 -2
- package/dist/TreeView/useTreeItemCache.js +1 -2
- package/dist/TreeView/useTreeRovingTabIndex.js +12 -12
- package/dist/TreeView/useTypeahead.js +1 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/Truncate/Truncate.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +5 -6
- package/dist/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavContext.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.js +4 -5
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.js +1 -2
- package/dist/UnderlineNav/index.d.ts +1 -2
- package/dist/UnderlineNav/index.js +1 -2
- package/dist/UnderlineNav/utils.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +1 -2
- package/dist/_VisuallyHidden.js +1 -2
- package/dist/_VisuallyHidden.module.css.js +1 -2
- package/dist/deprecated/ActionList/Divider.d.ts +1 -2
- package/dist/deprecated/ActionList/Divider.js +1 -2
- package/dist/deprecated/ActionList/Divider.module.css.js +1 -2
- package/dist/deprecated/ActionList/Group.d.ts +1 -2
- package/dist/deprecated/ActionList/Group.js +1 -2
- package/dist/deprecated/ActionList/Header.d.ts +1 -2
- package/dist/deprecated/ActionList/Header.js +1 -2
- package/dist/deprecated/ActionList/Header.module.css.js +1 -2
- package/dist/deprecated/ActionList/Item.d.ts +2 -3
- package/dist/deprecated/ActionList/Item.js +2 -3
- package/dist/deprecated/ActionList/Item.module.css.js +1 -2
- package/dist/deprecated/ActionList/List.d.ts +2 -3
- package/dist/deprecated/ActionList/List.js +1 -2
- package/dist/deprecated/ActionList/List.module.css.js +1 -2
- package/dist/deprecated/ActionList/index.d.ts +4 -5
- package/dist/deprecated/ActionList/index.js +2 -3
- package/dist/deprecated/ActionMenu.d.ts +3 -4
- package/dist/deprecated/ActionMenu.js +6 -7
- package/dist/deprecated/DialogV1/Dialog.d.ts +1 -2
- package/dist/deprecated/DialogV1/Dialog.js +2 -3
- package/dist/deprecated/DialogV1/Dialog.module.css.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +0 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/deprecated/index.js +3 -4
- package/dist/experimental/IssueLabel/IssueLabel.d.ts +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.js +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +1 -2
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +4 -5
- package/dist/experimental/SelectPanel2/SelectPanel.js +16 -17
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -2
- package/dist/experimental/Tabs/Tabs.d.ts +1 -2
- package/dist/experimental/Tabs/Tabs.js +1 -2
- package/dist/experimental/Tabs/TabsContext.js +1 -2
- package/dist/experimental/Tabs/index.d.ts +1 -1
- package/dist/experimental/Tabs/types.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.js +1 -2
- package/dist/experimental/Tabs/useTabList.d.ts +1 -2
- package/dist/experimental/Tabs/useTabList.js +1 -2
- package/dist/experimental/Tabs/useTabPanel.d.ts +1 -2
- package/dist/experimental/Tabs/useTabPanel.js +1 -2
- package/dist/experimental/Tabs/useTabs.js +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +13 -10
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +1 -2
- package/dist/experimental/index.d.ts +6 -6
- package/dist/experimental/index.js +20 -21
- package/dist/hooks/MatchMediaContext.js +1 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts +1 -2
- package/dist/hooks/useAnchoredPosition.js +2 -3
- package/dist/hooks/useControllableState.js +1 -2
- package/dist/hooks/useDetails.d.ts +0 -2
- package/dist/hooks/useDetails.js +1 -2
- package/dist/hooks/useDialog.js +1 -2
- package/dist/hooks/useFocusTrap.d.ts +1 -2
- package/dist/hooks/useFocusTrap.js +2 -3
- package/dist/hooks/useFocusZone.d.ts +1 -2
- package/dist/hooks/useFocusZone.js +1 -2
- package/dist/hooks/useId.d.ts +0 -2
- package/dist/hooks/useId.js +1 -2
- package/dist/hooks/useMedia.js +1 -2
- package/dist/hooks/useMenuInitialFocus.js +1 -2
- package/dist/hooks/useMenuKeyboardNavigation.js +1 -2
- package/dist/hooks/useMergedRefs.d.ts +1 -2
- package/dist/hooks/useMergedRefs.js +1 -2
- package/dist/hooks/useMnemonics.js +1 -2
- package/dist/hooks/useOnEscapePress.d.ts +0 -2
- package/dist/hooks/useOnEscapePress.js +1 -2
- package/dist/hooks/useOnOutsideClick.d.ts +1 -2
- package/dist/hooks/useOnOutsideClick.js +1 -2
- package/dist/hooks/useOpenAndCloseFocus.d.ts +1 -2
- package/dist/hooks/useOpenAndCloseFocus.js +1 -2
- package/dist/hooks/useOverflow.d.ts +0 -2
- package/dist/hooks/useOverflow.js +1 -2
- package/dist/hooks/useOverlay.d.ts +1 -2
- package/dist/hooks/useOverlay.js +3 -4
- package/dist/hooks/useProvidedRefOrCreate.d.ts +1 -2
- package/dist/hooks/useProvidedRefOrCreate.js +1 -2
- package/dist/hooks/useProvidedStateOrCreate.js +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.js +3 -4
- package/dist/hooks/useRenderForcingRef.js +1 -2
- package/dist/hooks/useResizeObserver.d.ts +1 -2
- package/dist/hooks/useResizeObserver.js +1 -2
- package/dist/hooks/useResponsiveValue.d.ts +0 -2
- package/dist/hooks/useResponsiveValue.js +1 -2
- package/dist/hooks/useSafeTimeout.d.ts +0 -2
- package/dist/hooks/useSafeTimeout.js +1 -2
- package/dist/hooks/useScrollFlash.js +1 -2
- package/dist/hooks/useSlots.d.ts +1 -2
- package/dist/hooks/useSlots.js +1 -2
- package/dist/hooks/useSyncedState.d.ts +0 -2
- package/dist/hooks/useSyncedState.js +16 -11
- package/dist/index.d.ts +22 -22
- package/dist/index.js +49 -49
- package/dist/internal/components/ButtonReset.js +1 -2
- package/dist/internal/components/ButtonReset.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +6 -7
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -3
- package/dist/internal/components/ConditionalWrapper.js +1 -2
- package/dist/internal/components/InputLabel.d.ts +1 -2
- package/dist/internal/components/InputLabel.js +1 -2
- package/dist/internal/components/InputLabel.module.css.js +1 -2
- package/dist/internal/components/InputValidation.js +1 -2
- package/dist/internal/components/InputValidation.module.css.js +1 -2
- package/dist/internal/components/OverflowObserverProvider.js +1 -2
- package/dist/internal/components/TextInputInnerAction.d.ts +1 -2
- package/dist/internal/components/TextInputInnerAction.js +3 -4
- package/dist/internal/components/TextInputInnerAction.module.css.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +1 -2
- package/dist/internal/components/TextInputWrapper.d.ts +1 -2
- package/dist/internal/components/TextInputWrapper.js +1 -2
- package/dist/internal/components/TextInputWrapper.module.css.js +1 -2
- package/dist/internal/components/ThemeProviderBase.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -2
- package/dist/internal/components/UnstyledTextInput.js +1 -2
- package/dist/internal/components/UnstyledTextInput.module.css.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +1 -2
- package/dist/internal/hooks/useDevOnlyEffect.js +1 -2
- package/dist/internal/hooks/useEffectCallback.js +1 -2
- package/dist/internal/hooks/useEffectOnce.js +1 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/internal/hooks/useThemeProvider.js +1 -2
- package/dist/internal/internal-types.d.ts +0 -2
- package/dist/internal/utils/getResponsiveAttributes.js +1 -2
- package/dist/internal/utils/hasInteractiveNodes.js +1 -2
- package/dist/legacy-theme/ts/color-schemes.js +0 -1
- package/dist/live-region/Announce.d.ts +1 -2
- package/dist/live-region/Announce.js +1 -2
- package/dist/live-region/AriaAlert.d.ts +1 -2
- package/dist/live-region/AriaAlert.js +1 -2
- package/dist/live-region/AriaStatus.d.ts +1 -2
- package/dist/live-region/AriaStatus.js +1 -2
- package/dist/next/ThemeProvider.d.ts +1 -2
- package/dist/next/ThemeProvider.js +1 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/test-helpers.d.ts +0 -2
- package/dist/test-helpers.js +1 -2
- package/dist/theme.d.ts +1 -2
- package/dist/theme.js +1 -2
- package/dist/useTheme.d.ts +1 -2
- package/dist/useTheme.js +1 -2
- package/dist/utils/as-slot.d.ts +1 -2
- package/dist/utils/as-slot.js +1 -2
- package/dist/utils/character-counter.js +1 -2
- package/dist/utils/create-component.d.ts +1 -2
- package/dist/utils/create-component.js +1 -2
- package/dist/utils/descendant-registry.js +1 -2
- package/dist/utils/environment.js +1 -2
- package/dist/utils/getBreakpointDeclarations.js +1 -2
- package/dist/utils/invariant.js +1 -2
- package/dist/utils/is-slot.d.ts +1 -2
- package/dist/utils/is-slot.js +1 -2
- package/dist/utils/isNumeric.js +1 -2
- package/dist/utils/modern-polymorphic.d.ts +1 -2
- package/dist/utils/modern-polymorphic.js +1 -2
- package/dist/utils/polymorphic.d.ts +1 -2
- package/dist/utils/react-compiler-runtime.js +1 -2
- package/dist/utils/scroll.js +1 -2
- package/dist/utils/theme.js +1 -2
- package/dist/utils/types/AriaRole.d.ts +0 -2
- package/dist/utils/types/ComponentProps.d.ts +0 -2
- package/dist/utils/types/FormValidationStatus.d.ts +0 -2
- package/dist/utils/types/KeyPaths.d.ts +0 -2
- package/dist/utils/types/MandateProps.d.ts +0 -2
- package/dist/utils/types/Merge.d.ts +0 -2
- package/dist/utils/types/Slots.d.ts +0 -2
- package/dist/utils/types/ViewportRangeKeys.d.ts +0 -2
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +1 -2
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -2
- package/dist/utils/warning.js +1 -2
- package/generated/components.json +12 -2
- package/package.json +6 -7
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
3
|
-
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
4
|
-
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
5
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
6
|
-
import Text_default from "../Text/Text.js";
|
|
7
|
-
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
8
|
-
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
9
2
|
import TextInput_module_css_default from "./TextInput.module.css.js";
|
|
10
3
|
import TextInputInnerVisualSlot from "../internal/components/TextInputInnerVisualSlot.js";
|
|
11
4
|
import { TextInputWrapper } from "../internal/components/TextInputWrapper.js";
|
|
12
5
|
import TextInputAction from "../internal/components/TextInputInnerAction.js";
|
|
13
6
|
import UnstyledTextInput from "../internal/components/UnstyledTextInput.js";
|
|
7
|
+
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
8
|
+
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
14
9
|
import { getCharacterCountState } from "../utils/character-counter.js";
|
|
10
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
11
|
+
import Text_default from "../Text/Text.js";
|
|
12
|
+
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
13
|
+
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
14
|
+
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
15
15
|
import React, { useId, useRef, useState } from "react";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { clsx } from "clsx";
|
|
18
18
|
import { isValidElementType } from "react-is";
|
|
19
19
|
import { AlertFillIcon } from "@primer/octicons-react";
|
|
20
|
-
|
|
20
|
+
// src/TextInput/TextInput.tsx
|
|
21
21
|
const TextInput = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
22
22
|
var _counter$isOverLimit;
|
|
23
23
|
const $ = c(80);
|
|
@@ -54,7 +54,7 @@ const TextInput = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
54
54
|
const showTrailingLoadingIndicator = loading && (loaderPosition === "trailing" || Boolean(loaderPosition === "auto" && !LeadingVisual));
|
|
55
55
|
const isSegmentedInputType = type === "date" || type === "time" || type === "datetime-local";
|
|
56
56
|
let t6;
|
|
57
|
-
if ($[4] !== isSegmentedInputType || $[5] !== readRef
|
|
57
|
+
if ($[4] !== isSegmentedInputType || $[5] !== readRef) {
|
|
58
58
|
t6 = (e) => {
|
|
59
59
|
if (e.target !== readRef.current || !isSegmentedInputType) {
|
|
60
60
|
var _readRef$current;
|
|
@@ -62,7 +62,7 @@ const TextInput = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
$[4] = isSegmentedInputType;
|
|
65
|
-
$[5] = readRef
|
|
65
|
+
$[5] = readRef;
|
|
66
66
|
$[6] = t6;
|
|
67
67
|
} else t6 = $[6];
|
|
68
68
|
const focusInput = t6;
|
|
@@ -309,5 +309,4 @@ var TextInput_default = Object.assign(TextInput, {
|
|
|
309
309
|
__SLOT__: Symbol("TextInput"),
|
|
310
310
|
Action: TextInputAction
|
|
311
311
|
});
|
|
312
|
-
//#endregion
|
|
313
312
|
export { TextInput_default as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./TextInput-dff8f842.css";
|
|
2
|
-
|
|
2
|
+
// src/TextInput/TextInput.module.css.js
|
|
3
3
|
var TextInput_module_css_default = {
|
|
4
4
|
"CharacterCounter": "prc-TextInput-CharacterCounter-vJZBe",
|
|
5
5
|
"CharacterCounter--error": "prc-TextInput-CharacterCounter--error-HA0kN"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { TextInput_module_css_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { WithSlotMarker } from "../utils/types/Slots.js";
|
|
2
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
2
|
import { TextInputProps } from "../TextInput/TextInput.js";
|
|
4
3
|
import { TokenSizeKeys } from "../Token/constants.js";
|
|
5
4
|
import Token, { TokenProps as TokenProps$1 } from "../Token/Token.js";
|
|
5
|
+
import { WithSlotMarker } from "../utils/types/Slots.js";
|
|
6
6
|
import React, { RefObject } from "react";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/TextInputWithTokens/TextInputWithTokens.d.ts
|
|
9
9
|
type AnyReactComponent = React.ComponentType<React.PropsWithChildren<any>>;
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated
|
|
@@ -92,5 +92,4 @@ declare const TextInputWithTokens: React.ForwardRefExoticComponent<{
|
|
|
92
92
|
* @deprecated
|
|
93
93
|
*/
|
|
94
94
|
declare const _default: WithSlotMarker<typeof TextInputWithTokens>;
|
|
95
|
-
//#endregion
|
|
96
95
|
export { TextInputWithTokensProps, _default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
|
+
import { useFocusZone } from "../hooks/useFocusZone.js";
|
|
3
4
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
4
5
|
import Text_default from "../Text/Text.js";
|
|
6
|
+
import Token from "../Token/Token.js";
|
|
5
7
|
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
6
|
-
import { useFocusZone } from "../hooks/useFocusZone.js";
|
|
7
|
-
import TextInputInnerVisualSlot from "../internal/components/TextInputInnerVisualSlot.js";
|
|
8
8
|
import { TextInputWrapper } from "../internal/components/TextInputWrapper.js";
|
|
9
9
|
import UnstyledTextInput from "../internal/components/UnstyledTextInput.js";
|
|
10
|
-
import
|
|
10
|
+
import TextInputInnerVisualSlot from "../internal/components/TextInputInnerVisualSlot.js";
|
|
11
11
|
import TextInputWithTokens_module_css_default from "./TextInputWithTokens.module.css.js";
|
|
12
12
|
import React, { useRef, useState } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -15,7 +15,7 @@ import { clsx } from "clsx";
|
|
|
15
15
|
import { isFocusable } from "@primer/behaviors/utils";
|
|
16
16
|
import { FocusKeys } from "@primer/behaviors";
|
|
17
17
|
import { isValidElementType } from "react-is";
|
|
18
|
-
|
|
18
|
+
// src/TextInputWithTokens/TextInputWithTokens.tsx
|
|
19
19
|
const overflowCountClassMap = {
|
|
20
20
|
small: TextInputWithTokens_module_css_default.OverflowCountSmall,
|
|
21
21
|
medium: TextInputWithTokens_module_css_default.OverflowCountMedium,
|
|
@@ -576,5 +576,4 @@ function _temp(token) {
|
|
|
576
576
|
const TextInputWithTokens = /*#__PURE__*/ React.forwardRef(TextInputWithTokensInnerComponent);
|
|
577
577
|
TextInputWithTokens.displayName = "TextInputWithTokens";
|
|
578
578
|
TextInputWithTokens.__SLOT__ = Symbol("TextInputWithTokens");
|
|
579
|
-
//#endregion
|
|
580
579
|
export { TextInputWithTokens as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./TextInputWithTokens-946ead3e.css";
|
|
2
|
-
|
|
2
|
+
// src/TextInputWithTokens/TextInputWithTokens.module.css.js
|
|
3
3
|
var TextInputWithTokens_module_css_default = {
|
|
4
4
|
"TextInputWrapper": "prc-TextInputWithTokens-TextInputWrapper-HAIfc",
|
|
5
5
|
"UnstyledTextInput": "prc-TextInputWithTokens-UnstyledTextInput-XwhBc",
|
|
@@ -10,5 +10,4 @@ var TextInputWithTokens_module_css_default = {
|
|
|
10
10
|
"OverflowCountMedium": "prc-TextInputWithTokens-OverflowCountMedium-uq-gt",
|
|
11
11
|
"OverflowCountXLarge": "prc-TextInputWithTokens-OverflowCountXLarge-A-rpJ"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { TextInputWithTokens_module_css_default as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./TextArea-2dc51d35.css";
|
|
2
|
-
|
|
2
|
+
// src/Textarea/TextArea.module.css.js
|
|
3
3
|
var TextArea_module_css_default = {
|
|
4
4
|
"TextArea": "prc-Textarea-TextArea-snlco",
|
|
5
5
|
"CharacterCounter": "prc-Textarea-CharacterCounter-qnOXd",
|
|
6
6
|
"CharacterCounter--error": "prc-Textarea-CharacterCounter--error-eewrs"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { TextArea_module_css_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { WithSlotMarker } from "../utils/types/Slots.js";
|
|
2
1
|
import { FormValidationStatus } from "../utils/types/FormValidationStatus.js";
|
|
2
|
+
import { WithSlotMarker } from "../utils/types/Slots.js";
|
|
3
3
|
import React, { TextareaHTMLAttributes } from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/Textarea/Textarea.d.ts
|
|
6
6
|
type TextareaProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Apply inactive visual appearance to the Textarea
|
|
@@ -102,5 +102,4 @@ declare const Textarea: React.ForwardRefExoticComponent<{
|
|
|
102
102
|
characterLimit?: number;
|
|
103
103
|
} & TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
104
104
|
declare const _default: WithSlotMarker<typeof Textarea>;
|
|
105
|
-
//#endregion
|
|
106
105
|
export { TextareaProps, _default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
3
|
-
import Text_default from "../Text/Text.js";
|
|
4
|
-
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
5
|
-
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
6
2
|
import { TextInputBaseWrapper } from "../internal/components/TextInputWrapper.js";
|
|
7
|
-
import { getCharacterCountState } from "../utils/character-counter.js";
|
|
8
3
|
import TextArea_module_css_default from "./TextArea.module.css.js";
|
|
4
|
+
import { getCharacterCountState } from "../utils/character-counter.js";
|
|
5
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
6
|
+
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
7
|
+
import _VisuallyHidden_module_css_default from "../_VisuallyHidden.module.css.js";
|
|
8
|
+
import Text_default from "../Text/Text.js";
|
|
9
9
|
import React, { useId, useState } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { clsx } from "clsx";
|
|
@@ -238,5 +238,4 @@ const Textarea = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
238
238
|
});
|
|
239
239
|
Textarea.displayName = "Textarea";
|
|
240
240
|
Textarea.__SLOT__ = Symbol("Textarea");
|
|
241
|
-
//#endregion
|
|
242
241
|
export { DEFAULT_TEXTAREA_RESIZE, Textarea as default };
|
package/dist/ThemeContext.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorMode, ColorModeWithAuto, Theme } from "./ThemeProvider.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/ThemeContext.d.ts
|
|
5
5
|
interface ThemeContextValue {
|
|
6
6
|
/** @deprecated Use `ThemeProvider` and `useTheme` from `@primer/react/next` to migrate away from JavaScript theme values. */
|
|
7
7
|
theme?: Theme;
|
|
@@ -16,5 +16,4 @@ interface ThemeContextValue {
|
|
|
16
16
|
setDayScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
17
17
|
setNightScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { ThemeContextValue };
|
package/dist/ThemeContext.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/ThemeContext.ts
|
|
3
3
|
const ThemeContext = /*#__PURE__*/ React.createContext({
|
|
4
4
|
setColorMode: () => null,
|
|
5
5
|
setDayScheme: () => null,
|
|
6
6
|
setNightScheme: () => null
|
|
7
7
|
});
|
|
8
|
-
//#endregion
|
|
9
8
|
export { ThemeContext };
|
package/dist/ThemeProvider.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/ThemeProvider.d.ts
|
|
4
4
|
type Theme = {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
};
|
|
@@ -25,5 +25,4 @@ type ThemeProviderProps = {
|
|
|
25
25
|
* @deprecated Use `ThemeProvider` from `@primer/react/next` to migrate away from JavaScript theme values.
|
|
26
26
|
*/
|
|
27
27
|
declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
28
|
-
//#endregion
|
|
29
28
|
export { ColorMode, ColorModeWithAuto, Theme, ThemeProvider, ThemeProvider as default, ThemeProviderProps };
|
package/dist/ThemeProvider.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import theme from "./theme.js";
|
|
2
1
|
import { c } from "./utils/react-compiler-runtime.js";
|
|
3
2
|
import { ThemeProviderBase } from "./internal/components/ThemeProviderBase.js";
|
|
4
3
|
import { useThemeProvider } from "./internal/hooks/useThemeProvider.js";
|
|
4
|
+
import theme from "./theme.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import deepmerge from "deepmerge";
|
|
7
|
-
|
|
7
|
+
// src/ThemeProvider.tsx
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Use `ThemeProvider` from `@primer/react/next` to migrate away from JavaScript theme values.
|
|
10
10
|
*/
|
|
@@ -77,5 +77,4 @@ function applyColorScheme(theme, colorScheme) {
|
|
|
77
77
|
resolvedColorScheme: colorScheme
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
//#endregion
|
|
81
80
|
export { ThemeProvider, ThemeProvider as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TimelineBadgeVariants } from "./constants.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Timeline/Timeline.d.ts
|
|
5
5
|
type StyledTimelineProps = {
|
|
6
6
|
clipSidebar?: boolean | 'start' | 'end' | 'both';
|
|
7
7
|
className?: string;
|
|
@@ -57,5 +57,4 @@ declare const _default: React.ForwardRefExoticComponent<StyledTimelineProps & Om
|
|
|
57
57
|
/** Class name for custom styling */className?: string;
|
|
58
58
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
59
59
|
};
|
|
60
|
-
//#endregion
|
|
61
60
|
export { TimelineActionsProps, TimelineAvatarProps, TimelineBadgeProps, TimelineBadgeVariant, TimelineBodyProps, TimelineBreakProps, TimelineItemProps, TimelineItemsProps, TimelineProps, _default as default };
|
|
@@ -4,7 +4,7 @@ import Timeline_module_css_default from "./Timeline.module.css.js";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
|
|
7
|
+
// src/Timeline/Timeline.tsx
|
|
8
8
|
function resolveClipSidebar(clipSidebar) {
|
|
9
9
|
if (clipSidebar === true || clipSidebar === "both") return "both";
|
|
10
10
|
if (clipSidebar === "start" || clipSidebar === "end") return clipSidebar;
|
|
@@ -359,5 +359,4 @@ var Timeline_default = Object.assign(Timeline, {
|
|
|
359
359
|
Break: TimelineBreak,
|
|
360
360
|
Actions: TimelineActions
|
|
361
361
|
});
|
|
362
|
-
//#endregion
|
|
363
362
|
export { Timeline_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Timeline-b7e6685b.css";
|
|
2
|
-
|
|
2
|
+
// src/Timeline/Timeline.module.css.js
|
|
3
3
|
var Timeline_module_css_default = {
|
|
4
4
|
"Timeline": "prc-Timeline-Timeline-awSoC",
|
|
5
5
|
"TimelineItem": "prc-Timeline-TimelineItem-QwDVH",
|
|
@@ -10,5 +10,4 @@ var Timeline_module_css_default = {
|
|
|
10
10
|
"TimelineBreak": "prc-Timeline-TimelineBreak-X8eti",
|
|
11
11
|
"TimelineItemActions": "prc-Timeline-TimelineItemActions-56Y7h"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { Timeline_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CellAlignment } from "../DataTable/column.js";
|
|
2
2
|
import React, { MouseEventHandler } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/ToggleSwitch/ToggleSwitch.d.ts
|
|
5
5
|
interface ToggleSwitchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
6
6
|
/** The id of the DOM node that labels the switch */
|
|
7
7
|
['aria-labelledby']: string;
|
|
@@ -41,5 +41,4 @@ interface ToggleSwitchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
41
41
|
buttonLabelOff?: string;
|
|
42
42
|
}
|
|
43
43
|
declare const ToggleSwitch: React.ForwardRefExoticComponent<ToggleSwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
44
|
-
//#endregion
|
|
45
44
|
export { ToggleSwitchProps, ToggleSwitch as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import
|
|
2
|
+
import Spinner from "../Spinner/Spinner.js";
|
|
3
3
|
import { useProvidedStateOrCreate } from "../hooks/useProvidedStateOrCreate.js";
|
|
4
4
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
5
|
-
import Spinner from "../Spinner/Spinner.js";
|
|
6
5
|
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
6
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
7
7
|
import useSafeTimeout from "../hooks/useSafeTimeout.js";
|
|
8
8
|
import ToggleSwitch_module_css_default from "./ToggleSwitch.module.css.js";
|
|
9
9
|
import React, { useEffect } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { clsx } from "clsx";
|
|
12
|
-
|
|
12
|
+
// src/ToggleSwitch/ToggleSwitch.tsx
|
|
13
13
|
const CircleIcon = (t0) => {
|
|
14
14
|
const $ = c(4);
|
|
15
15
|
const { size } = t0;
|
|
@@ -383,5 +383,4 @@ const ToggleSwitch = /*#__PURE__*/ React.forwardRef(function ToggleSwitch(props,
|
|
|
383
383
|
return t32;
|
|
384
384
|
});
|
|
385
385
|
ToggleSwitch.displayName = "ToggleSwitch";
|
|
386
|
-
//#endregion
|
|
387
386
|
export { ToggleSwitch as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./ToggleSwitch-b5866af6.css";
|
|
2
|
-
|
|
2
|
+
// src/ToggleSwitch/ToggleSwitch.module.css.js
|
|
3
3
|
var ToggleSwitch_module_css_default = {
|
|
4
4
|
"ToggleSwitch": "prc-ToggleSwitch-ToggleSwitch-rQz-0",
|
|
5
5
|
"LoadingSpinner": "prc-ToggleSwitch-LoadingSpinner--4KG4",
|
|
@@ -12,5 +12,4 @@ var ToggleSwitch_module_css_default = {
|
|
|
12
12
|
"CircleIconContainer": "prc-ToggleSwitch-CircleIconContainer-XiMW5",
|
|
13
13
|
"ToggleKnob": "prc-ToggleSwitch-ToggleKnob-N9ops"
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { ToggleSwitch_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
1
|
import { TokenBaseProps } from "./TokenBase.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Token/IssueLabelToken.d.ts
|
|
5
5
|
interface IssueLabelTokenProps extends TokenBaseProps {
|
|
6
6
|
/**
|
|
7
7
|
* The color that corresponds to the label
|
|
@@ -9,5 +9,4 @@ interface IssueLabelTokenProps extends TokenBaseProps {
|
|
|
9
9
|
fillColor?: string;
|
|
10
10
|
}
|
|
11
11
|
declare const IssueLabelToken: ForwardRefComponent<"span" | "a" | "button", IssueLabelTokenProps>;
|
|
12
|
-
//#endregion
|
|
13
12
|
export { IssueLabelTokenProps, IssueLabelToken as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
+
import TokenBase from "./TokenBase.js";
|
|
2
3
|
import { defaultTokenSize } from "./constants.js";
|
|
3
4
|
import { isTokenInteractive } from "./utils.js";
|
|
4
|
-
import TokenBase from "./TokenBase.js";
|
|
5
5
|
import RemoveTokenButton from "./_RemoveTokenButton.js";
|
|
6
6
|
import TokenTextContainer from "./_TokenTextContainer.js";
|
|
7
7
|
import IssueLabelToken_module_css_default from "./IssueLabelToken.module.css.js";
|
|
@@ -9,7 +9,7 @@ import { forwardRef } from "react";
|
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
11
|
import { parseToHsla, parseToRgba } from "color2k";
|
|
12
|
-
|
|
12
|
+
// src/Token/IssueLabelToken.tsx
|
|
13
13
|
const IssueLabelToken = /*#__PURE__*/ forwardRef((props, forwardedRef) => {
|
|
14
14
|
const $ = c(81);
|
|
15
15
|
let as;
|
|
@@ -256,5 +256,4 @@ const IssueLabelToken = /*#__PURE__*/ forwardRef((props, forwardedRef) => {
|
|
|
256
256
|
return t24;
|
|
257
257
|
});
|
|
258
258
|
IssueLabelToken.displayName = "IssueLabelToken";
|
|
259
|
-
//#endregion
|
|
260
259
|
export { IssueLabelToken as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./IssueLabelToken-10cfada5.css";
|
|
2
|
-
|
|
2
|
+
// src/Token/IssueLabelToken.module.css.js
|
|
3
3
|
var IssueLabelToken_module_css_default = {
|
|
4
4
|
"IssueLabel": "prc-Token-IssueLabel-2IazM",
|
|
5
5
|
"RemoveButton": "prc-Token-RemoveButton-LhKs7"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { IssueLabelToken_module_css_default as default };
|
package/dist/Token/Token.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
1
|
import { TokenBaseProps } from "./TokenBase.js";
|
|
2
|
+
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/Token/Token.d.ts
|
|
6
6
|
interface TokenProps extends TokenBaseProps {
|
|
7
7
|
/**
|
|
8
8
|
* A component that renders before the token text
|
|
@@ -11,5 +11,4 @@ interface TokenProps extends TokenBaseProps {
|
|
|
11
11
|
leadingVisual?: React.ElementType;
|
|
12
12
|
}
|
|
13
13
|
declare const Token: ForwardRefComponent<"a" | "button" | "span", TokenProps>;
|
|
14
|
-
//#endregion
|
|
15
14
|
export { TokenProps, Token as default };
|
package/dist/Token/Token.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import
|
|
2
|
+
import TokenBase from "./TokenBase.js";
|
|
3
3
|
import { defaultTokenSize } from "./constants.js";
|
|
4
4
|
import { isTokenInteractive } from "./utils.js";
|
|
5
|
-
import TokenBase from "./TokenBase.js";
|
|
6
5
|
import RemoveTokenButton from "./_RemoveTokenButton.js";
|
|
7
6
|
import TokenTextContainer from "./_TokenTextContainer.js";
|
|
7
|
+
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
8
8
|
import Token_module_css_default from "./Token.module.css.js";
|
|
9
9
|
import { forwardRef } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { clsx } from "clsx";
|
|
12
|
-
|
|
12
|
+
// src/Token/Token.tsx
|
|
13
13
|
const tokenBorderWidthPx = 1;
|
|
14
14
|
const LeadingVisualContainer = (t0) => {
|
|
15
15
|
const $ = c(7);
|
|
@@ -234,5 +234,4 @@ const Token = /*#__PURE__*/ forwardRef((props, forwardedRef) => {
|
|
|
234
234
|
return t14;
|
|
235
235
|
});
|
|
236
236
|
Token.displayName = "Token";
|
|
237
|
-
//#endregion
|
|
238
237
|
export { Token as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./Token-b3c86dc0.css";
|
|
2
|
-
|
|
2
|
+
// src/Token/Token.module.css.js
|
|
3
3
|
var Token_module_css_default = {
|
|
4
4
|
"Token": "prc-Token-Token-A5-r7",
|
|
5
5
|
"LeadingVisualContainer": "prc-Token-LeadingVisualContainer-z-WxM",
|
|
6
6
|
"LargeLeadingVisual": "prc-Token-LargeLeadingVisual-foRMf"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { Token_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TokenSizeKeys } from "./constants.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Token/TokenBase.d.ts
|
|
5
5
|
interface TokenBaseProps extends Omit<React.HTMLProps<HTMLSpanElement | HTMLButtonElement | HTMLAnchorElement>, 'size' | 'id'> {
|
|
6
6
|
as?: 'button' | 'a' | 'span';
|
|
7
7
|
/**
|
|
@@ -33,5 +33,4 @@ interface TokenBaseProps extends Omit<React.HTMLProps<HTMLSpanElement | HTMLButt
|
|
|
33
33
|
*/
|
|
34
34
|
disabled?: boolean;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { TokenBaseProps, type TokenSizeKeys };
|
package/dist/Token/TokenBase.js
CHANGED
|
@@ -5,7 +5,7 @@ import { isTokenInteractive } from "./utils.js";
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
|
|
8
|
+
// src/Token/TokenBase.tsx
|
|
9
9
|
const TokenBase = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
10
10
|
const $ = c(25);
|
|
11
11
|
let Component;
|
|
@@ -95,5 +95,4 @@ const TokenBase = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
95
95
|
} else t7 = $[24];
|
|
96
96
|
return t7;
|
|
97
97
|
});
|
|
98
|
-
//#endregion
|
|
99
98
|
export { TokenBase as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./TokenBase-a805f182.css";
|
|
2
|
-
|
|
2
|
+
// src/Token/TokenBase.module.css.js
|
|
3
3
|
var TokenBase_module_css_default = { "TokenBase": "prc-Token-TokenBase-te5-F" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { TokenBase_module_css_default as default };
|
|
@@ -4,7 +4,7 @@ import _RemoveTokenButton_module_css_default from "./_RemoveTokenButton.module.c
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { XIcon } from "@primer/octicons-react";
|
|
7
|
-
|
|
7
|
+
// src/Token/_RemoveTokenButton.tsx
|
|
8
8
|
const RemoveTokenButton = (t0) => {
|
|
9
9
|
const $ = c(32);
|
|
10
10
|
let ariaLabel;
|
|
@@ -120,5 +120,4 @@ const RemoveTokenButton = (t0) => {
|
|
|
120
120
|
} else t8 = $[31];
|
|
121
121
|
return t8;
|
|
122
122
|
};
|
|
123
|
-
//#endregion
|
|
124
123
|
export { RemoveTokenButton as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./_RemoveTokenButton-a0d2969b.css";
|
|
2
|
-
|
|
2
|
+
// src/Token/_RemoveTokenButton.module.css.js
|
|
3
3
|
var _RemoveTokenButton_module_css_default = { "TokenButton": "prc-Token-TokenButton-L3DuN" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { _RemoveTokenButton_module_css_default as default };
|
|
@@ -2,7 +2,7 @@ import { c } from "../utils/react-compiler-runtime.js";
|
|
|
2
2
|
import _TokenTextContainer_module_css_default from "./_TokenTextContainer.module.css.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
|
|
5
|
+
// src/Token/_TokenTextContainer.tsx
|
|
6
6
|
const TokenTextContainer = (t0) => {
|
|
7
7
|
const $ = c(13);
|
|
8
8
|
let children;
|
|
@@ -52,5 +52,4 @@ const TokenTextContainer = (t0) => {
|
|
|
52
52
|
} else t5 = $[12];
|
|
53
53
|
return t5;
|
|
54
54
|
};
|
|
55
|
-
//#endregion
|
|
56
55
|
export { TokenTextContainer as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./_TokenTextContainer-55ce2de3.css";
|
|
2
|
-
|
|
2
|
+
// src/Token/_TokenTextContainer.module.css.js
|
|
3
3
|
var _TokenTextContainer_module_css_default = {
|
|
4
4
|
"TokenTextContainer": "prc-Token-TokenTextContainer-cOUaD",
|
|
5
5
|
"does-not-exist": "prc-Token-does-not-exist-jST5F"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { _TokenTextContainer_module_css_default as default };
|
package/dist/Token/constants.js
CHANGED
package/dist/Token/utils.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Token/utils.ts
|
|
2
2
|
const isTokenInteractive = ({ as = "span", onClick, onFocus, tabIndex = -1, disabled }) => {
|
|
3
3
|
if (disabled) return false;
|
|
4
4
|
return Boolean(onFocus || onClick || tabIndex > -1 || ["a", "button"].includes(as));
|
|
5
5
|
};
|
|
6
|
-
//#endregion
|
|
7
6
|
export { isTokenInteractive };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ForwardRefComponent } from "../utils/polymorphic.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Tooltip/Tooltip.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated
|
|
7
7
|
*/
|
|
@@ -19,5 +19,4 @@ declare const Tooltip: ForwardRefComponent<"span", TooltipProps> & {
|
|
|
19
19
|
alignments: string[];
|
|
20
20
|
directions: string[];
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { TooltipProps, Tooltip as default };
|
package/dist/Tooltip/Tooltip.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useId as useId$1 } from "../hooks/useId.js";
|
|
3
|
-
import { TooltipContext } from "./TooltipContext.js";
|
|
4
3
|
import Tooltip_module_css_default from "./Tooltip.module.css.js";
|
|
4
|
+
import { TooltipContext } from "./TooltipContext.js";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
|
|
8
|
+
// src/Tooltip/Tooltip.tsx
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated
|
|
11
11
|
*/
|
|
@@ -126,5 +126,4 @@ Tooltip.directions = [
|
|
|
126
126
|
"nw"
|
|
127
127
|
];
|
|
128
128
|
Tooltip.__SLOT__ = Symbol("Tooltip");
|
|
129
|
-
//#endregion
|
|
130
129
|
export { Tooltip as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Tooltip-dca4338d.css";
|
|
2
|
-
|
|
2
|
+
// src/Tooltip/Tooltip.module.css.js
|
|
3
3
|
var Tooltip_module_css_default = {
|
|
4
4
|
"Tooltip": "prc-Tooltip-Tooltip-JLsri",
|
|
5
5
|
"tooltip-appear": "prc-Tooltip-tooltip-appear-orG4s",
|
|
@@ -16,5 +16,4 @@ var Tooltip_module_css_default = {
|
|
|
16
16
|
"Tooltip--alignRight": "prc-Tooltip-Tooltip--alignRight-aNEnL",
|
|
17
17
|
"Tooltip--alignLeft": "prc-Tooltip-Tooltip--alignLeft-LqNu7"
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { Tooltip_module_css_default as default };
|