@primer/react 38.47.0-rc.200a948c2 → 38.47.0-rc.2f87f01e5
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 +51 -59
- package/dist/ActionList/Selection.js +5 -6
- package/dist/ActionList/TrailingAction.d.ts +1 -2
- package/dist/ActionList/TrailingAction.js +2 -3
- package/dist/ActionList/Visuals.d.ts +1 -2
- package/dist/ActionList/Visuals.js +2 -3
- package/dist/ActionList/index.d.ts +7 -7
- package/dist/ActionList/index.js +7 -8
- package/dist/ActionList/shared.d.ts +1 -2
- package/dist/ActionList/shared.js +1 -2
- package/dist/ActionMenu/ActionMenu.d.ts +3 -4
- package/dist/ActionMenu/ActionMenu.js +8 -9
- package/dist/ActionMenu/ActionMenu.module.css.js +1 -2
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts +2 -3
- package/dist/AnchoredOverlay/AnchoredOverlay.js +8 -18
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -2
- package/dist/Autocomplete/Autocomplete.d.ts +3 -4
- package/dist/Autocomplete/Autocomplete.js +2 -3
- package/dist/Autocomplete/AutocompleteContext.js +1 -2
- package/dist/Autocomplete/AutocompleteInput.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteInput.js +3 -4
- package/dist/Autocomplete/AutocompleteMenu.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteMenu.js +5 -6
- package/dist/Autocomplete/AutocompleteMenu.module.css.js +1 -2
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +2 -3
- package/dist/Autocomplete/AutocompleteOverlay.js +3 -4
- package/dist/Autocomplete/AutocompleteOverlay.module.css.js +1 -2
- package/dist/Avatar/Avatar.d.ts +1 -2
- package/dist/Avatar/Avatar.js +0 -1
- package/dist/Avatar/Avatar.module.css.js +1 -2
- package/dist/AvatarStack/AvatarStack.d.ts +1 -2
- package/dist/AvatarStack/AvatarStack.js +1 -2
- package/dist/AvatarStack/AvatarStack.module.css.js +1 -2
- package/dist/Banner/Banner.d.ts +1 -2
- package/dist/Banner/Banner.js +5 -6
- package/dist/Banner/Banner.module.css.js +1 -2
- package/dist/Banner/index.d.ts +2 -3
- package/dist/Banner/index.js +1 -2
- package/dist/BaseStyles.d.ts +0 -2
- package/dist/BaseStyles.js +1 -2
- package/dist/BaseStyles.module.css.js +1 -2
- package/dist/Blankslate/Blankslate.d.ts +1 -2
- package/dist/Blankslate/Blankslate.js +2 -3
- package/dist/Blankslate/Blankslate.module.css.js +1 -2
- package/dist/Blankslate/BlankslateContext.js +1 -2
- package/dist/Blankslate/index.d.ts +1 -2
- package/dist/Blankslate/index.js +1 -2
- package/dist/BranchName/BranchName.d.ts +1 -2
- package/dist/BranchName/BranchName.js +2 -3
- package/dist/BranchName/BranchName.module.css.js +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/Breadcrumbs/Breadcrumbs.js +6 -7
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -2
- package/dist/Button/Button.d.ts +2 -3
- package/dist/Button/Button.js +1 -2
- package/dist/Button/ButtonBase.d.ts +1 -2
- package/dist/Button/ButtonBase.js +3 -4
- package/dist/Button/ButtonBase.module.css.js +1 -2
- package/dist/Button/IconButton.d.ts +2 -3
- package/dist/Button/IconButton.js +3 -4
- package/dist/Button/LinkButton.d.ts +2 -3
- package/dist/Button/LinkButton.js +1 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/types.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/dist/ButtonGroup/ButtonGroup.js +23 -31
- package/dist/ButtonGroup/ButtonGroup.module.css.js +1 -2
- package/dist/Card/Card.d.ts +1 -2
- package/dist/Card/Card.js +3 -4
- package/dist/Card/Card.module.css.js +1 -2
- package/dist/Card/index.d.ts +1 -2
- package/dist/Card/index.js +1 -2
- package/dist/Checkbox/Checkbox.d.ts +2 -3
- package/dist/Checkbox/Checkbox.js +49 -64
- package/dist/Checkbox/Checkbox.module.css.js +1 -2
- package/dist/Checkbox/shared.module.css.js +1 -2
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.js +6 -7
- package/dist/CheckboxGroup/CheckboxGroupContext.js +1 -2
- package/dist/CircleBadge/CircleBadge.d.ts +0 -2
- package/dist/CircleBadge/CircleBadge.js +1 -2
- package/dist/CircleBadge/CircleBadge.module.css.js +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts +1 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -2
- package/dist/ConfirmationDialog/useConfirm.d.ts +1 -2
- package/dist/ConfirmationDialog/useConfirm.js +1 -2
- package/dist/CounterLabel/CounterLabel.d.ts +1 -2
- package/dist/CounterLabel/CounterLabel.js +1 -2
- package/dist/CounterLabel/CounterLabel.module.css.js +1 -2
- package/dist/DataTable/DataTable.d.ts +4 -5
- package/dist/DataTable/DataTable.js +3 -4
- package/dist/DataTable/ErrorDialog.d.ts +1 -2
- package/dist/DataTable/ErrorDialog.js +1 -2
- package/dist/DataTable/Pagination.d.ts +1 -2
- package/dist/DataTable/Pagination.js +2 -3
- package/dist/DataTable/Pagination.module.css.js +1 -2
- package/dist/DataTable/Table.d.ts +3 -4
- package/dist/DataTable/Table.js +4 -5
- package/dist/DataTable/Table.module.css.js +1 -2
- package/dist/DataTable/TableBulkActions.d.ts +1 -2
- package/dist/DataTable/TableBulkActions.js +2 -3
- package/dist/DataTable/TableBulkActions.module.css.js +1 -2
- package/dist/DataTable/TableGroup.d.ts +1 -2
- package/dist/DataTable/TableGroup.js +4 -5
- package/dist/DataTable/TableGroupContext.js +1 -2
- package/dist/DataTable/column.d.ts +1 -2
- package/dist/DataTable/column.js +1 -2
- package/dist/DataTable/index.d.ts +4 -5
- package/dist/DataTable/index.js +3 -4
- package/dist/DataTable/row.d.ts +0 -2
- package/dist/DataTable/sorting.d.ts +0 -2
- package/dist/DataTable/sorting.js +1 -2
- package/dist/DataTable/useTable.js +2 -3
- package/dist/DataTable/utils.d.ts +0 -2
- package/dist/Details/Details.d.ts +1 -2
- package/dist/Details/Details.js +2 -3
- package/dist/Details/Details.module.css.js +1 -2
- package/dist/Dialog/Dialog.d.ts +2 -3
- package/dist/Dialog/Dialog.js +10 -17
- package/dist/Dialog/Dialog.module.css.js +1 -2
- package/dist/Dialog/DialogContext.js +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/DefaultFeatureFlags.js +1 -3
- package/dist/FeatureFlags/FeatureFlagContext.js +1 -2
- package/dist/FeatureFlags/FeatureFlagScope.d.ts +0 -2
- package/dist/FeatureFlags/FeatureFlagScope.js +1 -2
- package/dist/FeatureFlags/FeatureFlags.d.ts +1 -2
- package/dist/FeatureFlags/FeatureFlags.js +2 -3
- package/dist/FeatureFlags/useFeatureFlag.d.ts +0 -2
- package/dist/FeatureFlags/useFeatureFlag.js +1 -2
- package/dist/FilteredActionList/FilteredActionList.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionList.js +25 -45
- package/dist/FilteredActionList/FilteredActionList.module.css.js +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListInput.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +1 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +1 -2
- package/dist/FilteredActionList/constants.d.ts +0 -2
- package/dist/FilteredActionList/constants.js +1 -2
- package/dist/FilteredActionList/index.d.ts +2 -3
- package/dist/FilteredActionList/index.js +3 -4
- package/dist/FilteredActionList/types.d.ts +3 -4
- package/dist/FilteredActionList/useAnnouncements.js +1 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.js +1 -2
- package/dist/Flash/Flash.module.css.js +1 -2
- package/dist/FormControl/FormControl.d.ts +1 -2
- package/dist/FormControl/FormControl.js +8 -9
- package/dist/FormControl/FormControl.module.css.js +1 -2
- package/dist/FormControl/FormControlCaption.d.ts +1 -2
- package/dist/FormControl/FormControlCaption.js +2 -3
- package/dist/FormControl/FormControlCaption.module.css.js +1 -2
- package/dist/FormControl/FormControlLabel.d.ts +1 -2
- package/dist/FormControl/FormControlLabel.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.js +1 -2
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +1 -2
- package/dist/FormControl/_FormControlContext.d.ts +1 -2
- package/dist/FormControl/_FormControlContext.js +1 -2
- package/dist/FormControl/_FormControlContextProvider.js +1 -2
- package/dist/FormControl/_FormControlValidation.d.ts +1 -2
- package/dist/FormControl/_FormControlValidation.js +1 -2
- package/dist/FormControl/index.d.ts +3 -3
- package/dist/Header/Header.d.ts +1 -2
- package/dist/Header/Header.js +1 -2
- package/dist/Header/Header.module.css.js +1 -2
- package/dist/Heading/Heading.d.ts +1 -2
- package/dist/Heading/Heading.js +2 -3
- package/dist/Heading/Heading.module.css.js +1 -2
- package/dist/Hidden/Hidden.d.ts +1 -2
- package/dist/Hidden/Hidden.js +1 -2
- package/dist/Hidden/Hidden.module.css.js +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.js +1 -2
- package/dist/InlineMessage/InlineMessage.module.css.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.d.ts +1 -2
- package/dist/KeybindingHint/KeybindingHint.js +1 -2
- package/dist/KeybindingHint/KeybindingHint.module.css.js +1 -2
- package/dist/KeybindingHint/components/Chord.js +1 -2
- package/dist/KeybindingHint/components/Chord.module.css.js +1 -2
- package/dist/KeybindingHint/components/Key.js +1 -2
- package/dist/KeybindingHint/components/Sequence.js +1 -2
- package/dist/KeybindingHint/components/utils.js +1 -2
- package/dist/KeybindingHint/key-names.js +1 -2
- package/dist/KeybindingHint/platform.d.ts +0 -2
- package/dist/KeybindingHint/platform.js +1 -2
- package/dist/KeybindingHint/props.d.ts +0 -2
- package/dist/KeybindingHint/utils.d.ts +1 -2
- package/dist/KeybindingHint/utils.js +1 -2
- package/dist/Label/Label.d.ts +1 -2
- package/dist/Label/Label.js +1 -2
- package/dist/Label/Label.module.css.js +1 -2
- package/dist/Label/index.js +1 -2
- package/dist/LabelGroup/LabelGroup.d.ts +1 -2
- package/dist/LabelGroup/LabelGroup.js +3 -4
- package/dist/LabelGroup/LabelGroup.module.css.js +1 -2
- package/dist/Link/Link.d.ts +2 -3
- package/dist/Link/Link.js +3 -4
- package/dist/Link/Link.module.css.js +1 -2
- package/dist/NavList/NavList.d.ts +4 -5
- package/dist/NavList/NavList.js +8 -9
- package/dist/NavList/NavList.module.css.js +1 -2
- package/dist/Octicon/Octicon.d.ts +1 -2
- package/dist/Octicon/Octicon.js +1 -2
- package/dist/Overlay/Overlay.d.ts +2 -3
- package/dist/Overlay/Overlay.js +3 -4
- package/dist/Overlay/Overlay.module.css.js +1 -2
- package/dist/Overlay/constants.d.ts +0 -2
- package/dist/Overlay/constants.js +1 -2
- package/dist/PageHeader/PageHeader.d.ts +4 -5
- package/dist/PageHeader/PageHeader.js +36 -47
- package/dist/PageHeader/PageHeader.module.css.js +1 -2
- package/dist/PageLayout/DragHandle.d.ts +1 -2
- package/dist/PageLayout/DragHandle.js +1 -2
- package/dist/PageLayout/PageLayout.d.ts +2 -3
- package/dist/PageLayout/PageLayout.js +3 -4
- package/dist/PageLayout/PageLayout.module.css.js +1 -2
- package/dist/PageLayout/index.d.ts +1 -1
- package/dist/PageLayout/paneUtils.js +1 -2
- package/dist/PageLayout/usePaneWidth.d.ts +1 -2
- package/dist/PageLayout/usePaneWidth.js +28 -27
- package/dist/Pagehead/Pagehead.d.ts +1 -2
- package/dist/Pagehead/Pagehead.js +1 -2
- package/dist/Pagehead/Pagehead.module.css.js +1 -2
- package/dist/Pagination/Pagination.d.ts +2 -3
- package/dist/Pagination/Pagination.js +2 -3
- package/dist/Pagination/Pagination.module.css.js +1 -2
- package/dist/Pagination/index.js +1 -2
- package/dist/Pagination/model.d.ts +0 -2
- package/dist/Pagination/model.js +1 -2
- package/dist/Popover/Popover.d.ts +1 -2
- package/dist/Popover/Popover.js +3 -4
- package/dist/Popover/Popover.module.css.js +1 -2
- package/dist/Portal/Portal.d.ts +1 -2
- package/dist/Portal/Portal.js +1 -2
- package/dist/Portal/PortalContext.d.ts +1 -2
- package/dist/Portal/PortalContext.js +1 -2
- package/dist/Portal/index.js +1 -2
- package/dist/Portal/portalRoot.d.ts +0 -2
- package/dist/Portal/portalRoot.js +1 -2
- package/dist/ProgressBar/ProgressBar.d.ts +1 -2
- package/dist/ProgressBar/ProgressBar.js +1 -2
- package/dist/ProgressBar/ProgressBar.module.css.js +1 -2
- package/dist/ProgressBar/index.d.ts +1 -2
- package/dist/ProgressBar/index.js +1 -2
- package/dist/Radio/Radio.d.ts +1 -2
- package/dist/Radio/Radio.js +1 -2
- package/dist/Radio/Radio.module.css.js +1 -2
- package/dist/RadioGroup/RadioGroup.d.ts +2 -3
- package/dist/RadioGroup/RadioGroup.js +4 -5
- package/dist/RadioGroup/RadioGroupContext.js +1 -2
- package/dist/RelativeTime/RelativeTime.d.ts +1 -2
- package/dist/RelativeTime/RelativeTime.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.d.ts +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.js +1 -2
- package/dist/ScrollableRegion/ScrollableRegion.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControl.d.ts +2 -3
- package/dist/SegmentedControl/SegmentedControl.js +9 -10
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlAction.js +2 -3
- package/dist/SegmentedControl/SegmentedControlActionContext.js +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlButton.js +2 -3
- package/dist/SegmentedControl/SegmentedControlDivider.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts +1 -2
- package/dist/SegmentedControl/SegmentedControlIconButton.js +2 -3
- package/dist/SegmentedControl/index.d.ts +3 -3
- package/dist/Select/Select.d.ts +2 -3
- package/dist/Select/Select.js +1 -2
- package/dist/Select/Select.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanel.d.ts +2 -3
- package/dist/SelectPanel/SelectPanel.js +13 -14
- package/dist/SelectPanel/SelectPanel.module.css.js +1 -2
- package/dist/SelectPanel/SelectPanelMessage.d.ts +1 -2
- package/dist/SelectPanel/SelectPanelMessage.js +1 -2
- package/dist/SelectPanel/index.d.ts +1 -1
- package/dist/SideNav.d.ts +1 -2
- package/dist/SideNav.js +1 -2
- package/dist/SideNav.module.css.js +1 -2
- package/dist/Skeleton/SkeletonBox.d.ts +1 -2
- package/dist/Skeleton/SkeletonBox.js +1 -2
- package/dist/Skeleton/SkeletonBox.module.css.js +1 -2
- package/dist/Skeleton/skeleton.module.css.js +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +1 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.js +2 -3
- package/dist/SkeletonAvatar/SkeletonAvatar.module.css.js +1 -2
- package/dist/SkeletonText/SkeletonText.d.ts +1 -2
- package/dist/SkeletonText/SkeletonText.js +2 -3
- package/dist/SkeletonText/SkeletonText.module.css.js +1 -2
- package/dist/Spinner/Spinner.d.ts +1 -2
- package/dist/Spinner/Spinner.js +1 -2
- package/dist/Spinner/Spinner.module.css.js +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.d.ts +1 -2
- package/dist/SplitPageLayout/SplitPageLayout.js +1 -2
- package/dist/Stack/Stack.d.ts +1 -2
- package/dist/Stack/Stack.js +1 -2
- package/dist/Stack/Stack.module.css.js +1 -2
- package/dist/Stack/index.d.ts +2 -3
- package/dist/Stack/index.js +1 -2
- package/dist/StateLabel/StateLabel.d.ts +1 -2
- package/dist/StateLabel/StateLabel.js +1 -2
- package/dist/StateLabel/StateLabel.module.css.js +1 -2
- package/dist/SubNav/SubNav.d.ts +1 -2
- package/dist/SubNav/SubNav.js +1 -2
- package/dist/SubNav/SubNav.module.css.js +1 -2
- package/dist/TabNav/TabNav.d.ts +1 -2
- package/dist/TabNav/TabNav.js +1 -2
- package/dist/TabNav/TabNav.module.css.js +1 -2
- package/dist/Text/Text.d.ts +1 -2
- package/dist/Text/Text.js +1 -2
- package/dist/Text/Text.module.css.js +1 -2
- package/dist/TextInput/TextInput.d.ts +2 -3
- package/dist/TextInput/TextInput.js +113 -121
- package/dist/TextInput/TextInput.module.css.js +1 -2
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +2 -3
- package/dist/TextInputWithTokens/TextInputWithTokens.js +4 -5
- package/dist/TextInputWithTokens/TextInputWithTokens.module.css.js +1 -2
- package/dist/Textarea/TextArea.module.css.js +1 -2
- package/dist/Textarea/Textarea.d.ts +2 -3
- package/dist/Textarea/Textarea.js +5 -6
- package/dist/ThemeContext.d.ts +1 -2
- package/dist/ThemeContext.js +1 -2
- package/dist/ThemeProvider.d.ts +1 -2
- package/dist/ThemeProvider.js +2 -3
- package/dist/Timeline/Timeline.d.ts +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 +84 -96
- package/dist/TooltipV2/Tooltip.module.css.js +1 -2
- package/dist/TooltipV2/TooltipContext.js +1 -2
- package/dist/TopicTag/TopicTag.d.ts +1 -2
- package/dist/TopicTag/TopicTag.js +1 -2
- package/dist/TopicTag/TopicTag.module.css.js +1 -2
- package/dist/TopicTag/TopicTagGroup.d.ts +1 -2
- package/dist/TopicTag/TopicTagGroup.js +1 -2
- package/dist/TopicTag/TopicTagGroup.module.css.js +1 -2
- package/dist/TopicTag/index.d.ts +1 -2
- package/dist/TopicTag/index.js +1 -2
- package/dist/TreeView/TreeView.d.ts +1 -2
- package/dist/TreeView/TreeView.js +16 -17
- package/dist/TreeView/TreeView.module.css.js +1 -2
- package/dist/TreeView/shared.js +1 -2
- package/dist/TreeView/useRovingTabIndex.d.ts +1 -2
- package/dist/TreeView/useRovingTabIndex.js +1 -2
- package/dist/TreeView/useTreeItemCache.js +1 -2
- package/dist/TreeView/useTreeRovingTabIndex.js +12 -12
- package/dist/TreeView/useTypeahead.js +1 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/Truncate/Truncate.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +5 -6
- package/dist/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavContext.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.js +4 -5
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItemsRegistry.js +1 -2
- package/dist/UnderlineNav/index.d.ts +1 -2
- package/dist/UnderlineNav/index.js +1 -2
- package/dist/UnderlineNav/utils.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -2
- package/dist/VisuallyHidden/VisuallyHidden.module.css.js +1 -2
- package/dist/_VisuallyHidden.js +1 -2
- package/dist/_VisuallyHidden.module.css.js +1 -2
- package/dist/deprecated/ActionList/Divider.d.ts +1 -2
- package/dist/deprecated/ActionList/Divider.js +1 -2
- package/dist/deprecated/ActionList/Divider.module.css.js +1 -2
- package/dist/deprecated/ActionList/Group.d.ts +1 -2
- package/dist/deprecated/ActionList/Group.js +1 -2
- package/dist/deprecated/ActionList/Header.d.ts +1 -2
- package/dist/deprecated/ActionList/Header.js +1 -2
- package/dist/deprecated/ActionList/Header.module.css.js +1 -2
- package/dist/deprecated/ActionList/Item.d.ts +2 -3
- package/dist/deprecated/ActionList/Item.js +2 -3
- package/dist/deprecated/ActionList/Item.module.css.js +1 -2
- package/dist/deprecated/ActionList/List.d.ts +2 -3
- package/dist/deprecated/ActionList/List.js +1 -2
- package/dist/deprecated/ActionList/List.module.css.js +1 -2
- package/dist/deprecated/ActionList/index.d.ts +4 -5
- package/dist/deprecated/ActionList/index.js +2 -3
- package/dist/deprecated/ActionMenu.d.ts +3 -4
- package/dist/deprecated/ActionMenu.js +6 -7
- package/dist/deprecated/DialogV1/Dialog.d.ts +1 -2
- package/dist/deprecated/DialogV1/Dialog.js +2 -3
- package/dist/deprecated/DialogV1/Dialog.module.css.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +0 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -2
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +1 -2
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +1 -2
- package/dist/deprecated/index.d.ts +1 -1
- package/dist/deprecated/index.js +3 -4
- package/dist/experimental/IssueLabel/IssueLabel.d.ts +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.js +1 -2
- package/dist/experimental/IssueLabel/IssueLabel.module.css.js +1 -2
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +4 -5
- package/dist/experimental/SelectPanel2/SelectPanel.js +16 -17
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -2
- package/dist/experimental/Tabs/Tabs.d.ts +1 -2
- package/dist/experimental/Tabs/Tabs.js +1 -2
- package/dist/experimental/Tabs/TabsContext.js +1 -2
- package/dist/experimental/Tabs/index.d.ts +1 -1
- package/dist/experimental/Tabs/types.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.d.ts +1 -2
- package/dist/experimental/Tabs/useTab.js +1 -2
- package/dist/experimental/Tabs/useTabList.d.ts +1 -2
- package/dist/experimental/Tabs/useTabList.js +15 -23
- package/dist/experimental/Tabs/useTabPanel.d.ts +1 -2
- package/dist/experimental/Tabs/useTabPanel.js +1 -2
- package/dist/experimental/Tabs/useTabs.js +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +1 -2
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +53 -62
- package/dist/experimental/UnderlinePanels/UnderlinePanels.module.css.js +1 -2
- package/dist/experimental/index.d.ts +6 -6
- package/dist/experimental/index.js +20 -21
- package/dist/hooks/MatchMediaContext.js +1 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useAnchoredPosition.d.ts +1 -2
- package/dist/hooks/useAnchoredPosition.js +2 -3
- package/dist/hooks/useControllableState.js +1 -2
- package/dist/hooks/useDetails.d.ts +0 -2
- package/dist/hooks/useDetails.js +1 -2
- package/dist/hooks/useDialog.js +1 -2
- package/dist/hooks/useFocusTrap.d.ts +1 -2
- package/dist/hooks/useFocusTrap.js +2 -3
- package/dist/hooks/useFocusZone.d.ts +1 -2
- package/dist/hooks/useFocusZone.js +1 -2
- package/dist/hooks/useId.d.ts +0 -2
- package/dist/hooks/useId.js +1 -2
- package/dist/hooks/useMedia.js +1 -2
- package/dist/hooks/useMenuInitialFocus.js +1 -2
- package/dist/hooks/useMenuKeyboardNavigation.js +1 -2
- package/dist/hooks/useMergedRefs.d.ts +1 -2
- package/dist/hooks/useMergedRefs.js +1 -2
- package/dist/hooks/useMnemonics.js +1 -2
- package/dist/hooks/useOnEscapePress.d.ts +0 -2
- package/dist/hooks/useOnEscapePress.js +1 -2
- package/dist/hooks/useOnOutsideClick.d.ts +1 -2
- package/dist/hooks/useOnOutsideClick.js +1 -2
- package/dist/hooks/useOpenAndCloseFocus.d.ts +1 -2
- package/dist/hooks/useOpenAndCloseFocus.js +1 -2
- package/dist/hooks/useOverflow.d.ts +0 -2
- package/dist/hooks/useOverflow.js +1 -2
- package/dist/hooks/useOverlay.d.ts +1 -2
- package/dist/hooks/useOverlay.js +3 -4
- package/dist/hooks/useProvidedRefOrCreate.d.ts +1 -2
- package/dist/hooks/useProvidedRefOrCreate.js +1 -2
- package/dist/hooks/useProvidedStateOrCreate.js +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.d.ts +1 -2
- package/dist/hooks/useRefObjectAsForwardedRef.js +3 -4
- package/dist/hooks/useRenderForcingRef.js +1 -2
- package/dist/hooks/useResizeObserver.d.ts +1 -2
- package/dist/hooks/useResizeObserver.js +1 -2
- package/dist/hooks/useResponsiveValue.d.ts +0 -2
- package/dist/hooks/useResponsiveValue.js +1 -2
- package/dist/hooks/useSafeTimeout.d.ts +0 -2
- package/dist/hooks/useSafeTimeout.js +1 -2
- package/dist/hooks/useScrollFlash.js +1 -2
- package/dist/hooks/useSlots.d.ts +1 -2
- package/dist/hooks/useSlots.js +1 -2
- package/dist/hooks/useSyncedState.d.ts +0 -2
- package/dist/hooks/useSyncedState.js +16 -11
- package/dist/index.d.ts +22 -22
- package/dist/index.js +49 -49
- package/dist/internal/components/ButtonReset.js +1 -2
- package/dist/internal/components/ButtonReset.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +6 -7
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.module.css.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupContext.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +1 -2
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -3
- package/dist/internal/components/ConditionalWrapper.js +1 -2
- package/dist/internal/components/InputLabel.d.ts +1 -2
- package/dist/internal/components/InputLabel.js +1 -2
- package/dist/internal/components/InputLabel.module.css.js +1 -2
- package/dist/internal/components/InputValidation.js +1 -2
- package/dist/internal/components/InputValidation.module.css.js +1 -2
- package/dist/internal/components/OverflowObserverProvider.js +1 -2
- package/dist/internal/components/TextInputInnerAction.d.ts +1 -2
- package/dist/internal/components/TextInputInnerAction.js +3 -4
- package/dist/internal/components/TextInputInnerAction.module.css.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.js +1 -2
- package/dist/internal/components/TextInputInnerVisualSlot.module.css.js +1 -2
- package/dist/internal/components/TextInputWrapper.d.ts +1 -2
- package/dist/internal/components/TextInputWrapper.js +1 -2
- package/dist/internal/components/TextInputWrapper.module.css.js +1 -2
- package/dist/internal/components/ThemeProviderBase.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.js +1 -2
- package/dist/internal/components/UnderlineTabbedInterface.module.css.js +1 -2
- package/dist/internal/components/UnstyledTextInput.js +1 -2
- package/dist/internal/components/UnstyledTextInput.module.css.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.js +1 -2
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +1 -2
- package/dist/internal/hooks/useDevOnlyEffect.js +1 -2
- package/dist/internal/hooks/useEffectCallback.js +1 -2
- package/dist/internal/hooks/useEffectOnce.js +1 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/internal/hooks/useThemeProvider.js +1 -2
- package/dist/internal/internal-types.d.ts +0 -2
- package/dist/internal/utils/getResponsiveAttributes.js +1 -2
- package/dist/internal/utils/hasInteractiveNodes.js +1 -2
- package/dist/legacy-theme/ts/color-schemes.js +0 -1
- package/dist/live-region/Announce.d.ts +1 -2
- package/dist/live-region/Announce.js +1 -2
- package/dist/live-region/AriaAlert.d.ts +1 -2
- package/dist/live-region/AriaAlert.js +1 -2
- package/dist/live-region/AriaStatus.d.ts +1 -2
- package/dist/live-region/AriaStatus.js +1 -2
- package/dist/next/ThemeProvider.d.ts +1 -2
- package/dist/next/ThemeProvider.js +1 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +1 -1
- package/dist/test-helpers.d.ts +0 -2
- package/dist/test-helpers.js +1 -2
- package/dist/theme.d.ts +1 -2
- package/dist/theme.js +1 -2
- package/dist/useTheme.d.ts +1 -2
- package/dist/useTheme.js +1 -2
- package/dist/utils/as-slot.d.ts +1 -2
- package/dist/utils/as-slot.js +1 -2
- package/dist/utils/character-counter.js +1 -2
- package/dist/utils/create-component.d.ts +1 -2
- package/dist/utils/create-component.js +1 -2
- package/dist/utils/descendant-registry.js +1 -2
- package/dist/utils/environment.js +1 -2
- package/dist/utils/getBreakpointDeclarations.js +1 -2
- package/dist/utils/invariant.js +1 -2
- package/dist/utils/is-slot.d.ts +1 -2
- package/dist/utils/is-slot.js +1 -2
- package/dist/utils/isNumeric.js +1 -2
- package/dist/utils/modern-polymorphic.d.ts +1 -2
- package/dist/utils/modern-polymorphic.js +1 -2
- package/dist/utils/polymorphic.d.ts +1 -2
- package/dist/utils/react-compiler-runtime.js +1 -2
- package/dist/utils/scroll.js +1 -2
- package/dist/utils/theme.js +1 -2
- package/dist/utils/types/AriaRole.d.ts +0 -2
- package/dist/utils/types/ComponentProps.d.ts +0 -2
- package/dist/utils/types/FormValidationStatus.d.ts +0 -2
- package/dist/utils/types/KeyPaths.d.ts +0 -2
- package/dist/utils/types/MandateProps.d.ts +0 -2
- package/dist/utils/types/Merge.d.ts +0 -2
- package/dist/utils/types/Slots.d.ts +0 -2
- package/dist/utils/types/ViewportRangeKeys.d.ts +0 -2
- package/dist/utils/useIsomorphicLayoutEffect.d.ts +1 -2
- package/dist/utils/useIsomorphicLayoutEffect.js +1 -2
- package/dist/utils/warning.js +1 -2
- package/package.json +6 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Card-0e84ee3c.css";
|
|
2
|
-
|
|
2
|
+
// src/Card/Card.module.css.js
|
|
3
3
|
var Card_module_css_default = {
|
|
4
4
|
"Card": "prc-Card-Card-pYjuL",
|
|
5
5
|
"CardHeader": "prc-Card-CardHeader-P5Qbb",
|
|
@@ -15,5 +15,4 @@ var Card_module_css_default = {
|
|
|
15
15
|
"CardMetadataItem": "prc-Card-CardMetadataItem-ellY9",
|
|
16
16
|
"CardAction": "prc-Card-CardAction-VtI49"
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { Card_module_css_default as default };
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DistributiveOmit } from "../utils/modern-polymorphic.js";
|
|
2
2
|
import { CardAction, CardActionProps as ActionProps, CardButtonProps as ButtonProps, CardDescriptionProps as DescriptionProps, CardHeadingProps as HeadingProps, CardIcon, CardIconProps as IconProps, CardImage, CardImageProps as ImageProps, CardLinkProps as LinkProps, CardMetadataProps as MetadataProps, CardProps } from "./Card.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Card/index.d.ts
|
|
5
5
|
declare const Card: (<As extends "div" | "section">(props: DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As>, "as"> & Omit<{
|
|
6
6
|
className?: string;
|
|
7
7
|
padding?: "none" | "condensed" | "regular" | "spacious" | "normal";
|
|
@@ -35,5 +35,4 @@ declare const Card: (<As extends "div" | "section">(props: DistributiveOmit<impo
|
|
|
35
35
|
children: React.ReactNode;
|
|
36
36
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { Card, type ActionProps as CardActionProps, type ButtonProps as CardButtonProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, type IconProps as CardIconProps, type ImageProps as CardImageProps, type LinkProps as CardLinkProps, type MetadataProps as CardMetadataProps, type CardProps };
|
package/dist/Card/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardAction, CardButton, CardDescription, CardHeading, CardIcon, CardImage, CardImpl, CardLink, CardMetadata } from "./Card.js";
|
|
2
|
-
|
|
2
|
+
// src/Card/index.ts
|
|
3
3
|
const Card = Object.assign(CardImpl, {
|
|
4
4
|
Icon: CardIcon,
|
|
5
5
|
Image: CardImage,
|
|
@@ -10,5 +10,4 @@ const Card = Object.assign(CardImpl, {
|
|
|
10
10
|
Action: CardAction,
|
|
11
11
|
Metadata: CardMetadata
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
14
13
|
export { Card };
|
|
@@ -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, { InputHTMLAttributes } from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/Checkbox/Checkbox.d.ts
|
|
6
6
|
type CheckboxProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Apply indeterminate visual appearance to the checkbox
|
|
@@ -36,5 +36,4 @@ type CheckboxProps = {
|
|
|
36
36
|
*/
|
|
37
37
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
38
38
|
declare const _default: WithSlotMarker<typeof Checkbox>;
|
|
39
|
-
//#endregion
|
|
40
39
|
export { CheckboxProps, _default as default };
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
3
|
-
import { useProvidedRefOrCreate } from "../hooks/useProvidedRefOrCreate.js";
|
|
4
3
|
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
5
|
-
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
6
|
-
import shared_module_css_default from "./shared.module.css.js";
|
|
7
4
|
import { CheckboxGroupContext } from "../CheckboxGroup/CheckboxGroupContext.js";
|
|
8
5
|
import Checkbox_module_css_default from "./Checkbox.module.css.js";
|
|
6
|
+
import shared_module_css_default from "./shared.module.css.js";
|
|
9
7
|
import React, { useContext, useEffect, useRef } from "react";
|
|
10
8
|
import { jsx } from "react/jsx-runtime";
|
|
11
9
|
import { clsx } from "clsx";
|
|
12
|
-
|
|
10
|
+
// src/Checkbox/Checkbox.tsx
|
|
13
11
|
/**
|
|
14
12
|
* An accessible, native checkbox component
|
|
15
13
|
*/
|
|
16
14
|
const Checkbox = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
17
|
-
const $ = c(
|
|
15
|
+
const $ = c(40);
|
|
18
16
|
let checked;
|
|
19
17
|
let className;
|
|
20
18
|
let dataComponent;
|
|
@@ -53,39 +51,34 @@ const Checkbox = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
53
51
|
validationStatus = $[10];
|
|
54
52
|
value = $[11];
|
|
55
53
|
}
|
|
56
|
-
const mergedRefEnabled = useFeatureFlag("primer_react_merged_forwarded_refs");
|
|
57
54
|
const checkboxRef = useRef(null);
|
|
58
55
|
const mergedRef = useMergedRefs(checkboxRef, ref);
|
|
59
|
-
const providedOrCreatedRef = useProvidedRefOrCreate(ref);
|
|
60
|
-
const readRef = mergedRefEnabled ? checkboxRef : providedOrCreatedRef;
|
|
61
|
-
const appliedRef = mergedRefEnabled ? mergedRef : providedOrCreatedRef;
|
|
62
56
|
const checkboxGroupContext = useContext(CheckboxGroupContext);
|
|
63
57
|
let t1;
|
|
64
|
-
if ($[12] !== checkboxGroupContext || $[13] !== indeterminate || $[14] !== onChange
|
|
58
|
+
if ($[12] !== checkboxGroupContext || $[13] !== indeterminate || $[14] !== onChange) {
|
|
65
59
|
t1 = (e) => {
|
|
66
60
|
checkboxGroupContext.onChange && checkboxGroupContext.onChange(e);
|
|
67
61
|
onChange && onChange(e);
|
|
68
|
-
if (indeterminate &&
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
if (indeterminate && checkboxRef.current) {
|
|
63
|
+
checkboxRef.current.indeterminate = true;
|
|
64
|
+
checkboxRef.current.setAttribute("aria-checked", "mixed");
|
|
71
65
|
}
|
|
72
66
|
};
|
|
73
67
|
$[12] = checkboxGroupContext;
|
|
74
68
|
$[13] = indeterminate;
|
|
75
69
|
$[14] = onChange;
|
|
76
|
-
$[15] =
|
|
77
|
-
|
|
78
|
-
} else t1 = $[16];
|
|
70
|
+
$[15] = t1;
|
|
71
|
+
} else t1 = $[15];
|
|
79
72
|
const handleOnChange = t1;
|
|
80
73
|
const t2 = indeterminate ? false : checked;
|
|
81
74
|
const t3 = required ? "true" : "false";
|
|
82
75
|
const t4 = validationStatus === "error" ? "true" : "false";
|
|
83
76
|
let t5;
|
|
84
|
-
if ($[
|
|
77
|
+
if ($[16] !== defaultChecked || $[17] !== disabled || $[18] !== handleOnChange || $[19] !== mergedRef || $[20] !== required || $[21] !== rest || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== value) {
|
|
85
78
|
t5 = {
|
|
86
79
|
type: "checkbox",
|
|
87
80
|
disabled,
|
|
88
|
-
ref:
|
|
81
|
+
ref: mergedRef,
|
|
89
82
|
checked: t2,
|
|
90
83
|
defaultChecked,
|
|
91
84
|
required,
|
|
@@ -96,76 +89,68 @@ const Checkbox = /*#__PURE__*/ React.forwardRef((t0, ref) => {
|
|
|
96
89
|
name: value,
|
|
97
90
|
...rest
|
|
98
91
|
};
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
110
|
-
} else t5 = $[
|
|
92
|
+
$[16] = defaultChecked;
|
|
93
|
+
$[17] = disabled;
|
|
94
|
+
$[18] = handleOnChange;
|
|
95
|
+
$[19] = mergedRef;
|
|
96
|
+
$[20] = required;
|
|
97
|
+
$[21] = rest;
|
|
98
|
+
$[22] = t2;
|
|
99
|
+
$[23] = t3;
|
|
100
|
+
$[24] = t4;
|
|
101
|
+
$[25] = value;
|
|
102
|
+
$[26] = t5;
|
|
103
|
+
} else t5 = $[26];
|
|
111
104
|
const inputProps = t5;
|
|
112
105
|
let t6;
|
|
113
|
-
if ($[
|
|
106
|
+
if ($[27] !== indeterminate) {
|
|
114
107
|
t6 = () => {
|
|
115
|
-
if (
|
|
108
|
+
if (checkboxRef.current) checkboxRef.current.indeterminate = indeterminate || false;
|
|
116
109
|
};
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
|
|
120
|
-
} else t6 = $[30];
|
|
110
|
+
$[27] = indeterminate;
|
|
111
|
+
$[28] = t6;
|
|
112
|
+
} else t6 = $[28];
|
|
121
113
|
let t7;
|
|
122
|
-
if ($[
|
|
123
|
-
t7 = [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
$[31] = checked;
|
|
129
|
-
$[32] = indeterminate;
|
|
130
|
-
$[33] = readRef;
|
|
131
|
-
$[34] = t7;
|
|
132
|
-
} else t7 = $[34];
|
|
114
|
+
if ($[29] !== checked || $[30] !== indeterminate) {
|
|
115
|
+
t7 = [indeterminate, checked];
|
|
116
|
+
$[29] = checked;
|
|
117
|
+
$[30] = indeterminate;
|
|
118
|
+
$[31] = t7;
|
|
119
|
+
} else t7 = $[31];
|
|
133
120
|
useIsomorphicLayoutEffect(t6, t7);
|
|
134
121
|
let t8;
|
|
135
|
-
if ($[
|
|
122
|
+
if ($[32] !== indeterminate) {
|
|
136
123
|
t8 = () => {
|
|
137
|
-
const { current: checkbox } =
|
|
124
|
+
const { current: checkbox } = checkboxRef;
|
|
138
125
|
if (!checkbox) return;
|
|
139
126
|
if (indeterminate) checkbox.setAttribute("aria-checked", "mixed");
|
|
140
127
|
else checkbox.setAttribute("aria-checked", checkbox.checked ? "true" : "false");
|
|
141
128
|
};
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
|
|
145
|
-
} else t8 = $[37];
|
|
129
|
+
$[32] = indeterminate;
|
|
130
|
+
$[33] = t8;
|
|
131
|
+
} else t8 = $[33];
|
|
146
132
|
useEffect(t8);
|
|
147
133
|
const t9 = dataComponent !== null && dataComponent !== void 0 ? dataComponent : "Checkbox";
|
|
148
134
|
let t10;
|
|
149
|
-
if ($[
|
|
135
|
+
if ($[34] !== className) {
|
|
150
136
|
t10 = clsx(className, shared_module_css_default.Input, Checkbox_module_css_default.Checkbox);
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
} else t10 = $[
|
|
137
|
+
$[34] = className;
|
|
138
|
+
$[35] = t10;
|
|
139
|
+
} else t10 = $[35];
|
|
154
140
|
let t11;
|
|
155
|
-
if ($[
|
|
141
|
+
if ($[36] !== inputProps || $[37] !== t10 || $[38] !== t9) {
|
|
156
142
|
t11 = /* @__PURE__ */ jsx("input", {
|
|
157
143
|
...inputProps,
|
|
158
144
|
"data-component": t9,
|
|
159
145
|
className: t10
|
|
160
146
|
});
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
} else t11 = $[
|
|
147
|
+
$[36] = inputProps;
|
|
148
|
+
$[37] = t10;
|
|
149
|
+
$[38] = t9;
|
|
150
|
+
$[39] = t11;
|
|
151
|
+
} else t11 = $[39];
|
|
166
152
|
return t11;
|
|
167
153
|
});
|
|
168
154
|
Checkbox.displayName = "Checkbox";
|
|
169
155
|
Checkbox.__SLOT__ = Symbol("Checkbox");
|
|
170
|
-
//#endregion
|
|
171
156
|
export { Checkbox as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "./Checkbox-7476a7ba.css";
|
|
2
|
-
|
|
2
|
+
// src/Checkbox/Checkbox.module.css.js
|
|
3
3
|
var Checkbox_module_css_default = {
|
|
4
4
|
"Checkbox": "prc-Checkbox-Checkbox-jjOgT",
|
|
5
5
|
"checkmarkOut": "prc-Checkbox-checkmarkOut-mrgEX",
|
|
6
6
|
"checkmarkIn": "prc-Checkbox-checkmarkIn-73iWj"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { Checkbox_module_css_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FCWithSlotMarker, SlotMarker } from "../utils/types/Slots.js";
|
|
2
1
|
import { CheckboxOrRadioGroupLabelProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js";
|
|
3
2
|
import { CheckboxOrRadioGroupValidationProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js";
|
|
4
3
|
import { CheckboxOrRadioGroupProps } from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js";
|
|
4
|
+
import { FCWithSlotMarker, SlotMarker } from "../utils/types/Slots.js";
|
|
5
5
|
import React, { ChangeEvent } from "react";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/CheckboxGroup/CheckboxGroup.d.ts
|
|
8
8
|
type CheckboxGroupProps = {
|
|
9
9
|
/**
|
|
10
10
|
* An onChange handler that gets called when any of the checkboxes change
|
|
@@ -20,5 +20,4 @@ declare const _default: React.FC<React.PropsWithChildren<CheckboxGroupProps>> &
|
|
|
20
20
|
Label: FCWithSlotMarker<React.PropsWithChildren<CheckboxOrRadioGroupLabelProps>>;
|
|
21
21
|
Validation: FCWithSlotMarker<React.PropsWithChildren<CheckboxOrRadioGroupValidationProps>>;
|
|
22
22
|
};
|
|
23
|
-
//#endregion
|
|
24
23
|
export { CheckboxGroupProps, _default as default };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import
|
|
3
|
-
import { isSlot } from "../utils/is-slot.js";
|
|
2
|
+
import CheckboxOrRadioGroup_default from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js";
|
|
4
3
|
import CheckboxOrRadioGroupCaption from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js";
|
|
5
4
|
import CheckboxOrRadioGroupLabel from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js";
|
|
6
5
|
import CheckboxOrRadioGroupValidation from "../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js";
|
|
7
|
-
import
|
|
8
|
-
import { CheckboxGroupContext } from "./CheckboxGroupContext.js";
|
|
9
|
-
import Checkbox from "../Checkbox/Checkbox.js";
|
|
6
|
+
import { useRenderForcingRef } from "../hooks/useRenderForcingRef.js";
|
|
10
7
|
import FormControl_default from "../FormControl/FormControl.js";
|
|
8
|
+
import Checkbox from "../Checkbox/Checkbox.js";
|
|
9
|
+
import { CheckboxGroupContext } from "./CheckboxGroupContext.js";
|
|
10
|
+
import { isSlot } from "../utils/is-slot.js";
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
13
|
+
// src/CheckboxGroup/CheckboxGroup.tsx
|
|
14
14
|
const CheckboxGroup = (t0) => {
|
|
15
15
|
const $ = c(24);
|
|
16
16
|
let children;
|
|
@@ -118,5 +118,4 @@ function _temp3(child_0) {
|
|
|
118
118
|
function _temp4(checkbox) {
|
|
119
119
|
return /*#__PURE__*/ React.isValidElement(checkbox) && (checkbox.props.checked || checkbox.props.defaultChecked) && checkbox.props.value;
|
|
120
120
|
}
|
|
121
|
-
//#endregion
|
|
122
121
|
export { CheckboxGroupContext, CheckboxGroup_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../utils/types/ComponentProps.js";
|
|
2
2
|
import { OcticonProps } from "../Octicon/Octicon.js";
|
|
3
|
-
//#region src/CircleBadge/CircleBadge.d.ts
|
|
4
3
|
declare const variantSizes: {
|
|
5
4
|
small: number;
|
|
6
5
|
medium: number;
|
|
@@ -32,5 +31,4 @@ declare const _default: (<As extends React.ElementType>({
|
|
|
32
31
|
displayName: string;
|
|
33
32
|
};
|
|
34
33
|
};
|
|
35
|
-
//#endregion
|
|
36
34
|
export { CircleBadgeIconProps, CircleBadgeProps, _default as default };
|
|
@@ -4,7 +4,7 @@ import isNumeric from "../utils/isNumeric.js";
|
|
|
4
4
|
import CircleBadge_module_css_default from "./CircleBadge.module.css.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
|
|
7
|
+
// src/CircleBadge/CircleBadge.tsx
|
|
8
8
|
const variantSizes = {
|
|
9
9
|
small: 56,
|
|
10
10
|
medium: 96,
|
|
@@ -94,5 +94,4 @@ CircleBadgeIcon.displayName = "CircleBadge.Icon";
|
|
|
94
94
|
* Replace component with specific icon imports from `@primer/octicons-react` and customized styling.
|
|
95
95
|
*/
|
|
96
96
|
var CircleBadge_default = Object.assign(CircleBadge, { Icon: CircleBadgeIcon });
|
|
97
|
-
//#endregion
|
|
98
97
|
export { CircleBadge_default as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./CircleBadge-87549d20.css";
|
|
2
|
-
|
|
2
|
+
// src/CircleBadge/CircleBadge.module.css.js
|
|
3
3
|
var CircleBadge_module_css_default = {
|
|
4
4
|
"CircleBadge": "prc-CircleBadge-CircleBadge-tNGX1",
|
|
5
5
|
"CircleBadgeIcon": "prc-CircleBadge-CircleBadgeIcon-h73Dg"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { CircleBadge_module_css_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DialogHeight, DialogWidth } from "../Dialog/Dialog.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/ConfirmationDialog/ConfirmationDialog.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Props to customize the ConfirmationDialog.
|
|
7
7
|
*/
|
|
@@ -70,5 +70,4 @@ interface ConfirmationDialogProps {
|
|
|
70
70
|
* rendering capabilities are provided for ConfirmationDialog.
|
|
71
71
|
*/
|
|
72
72
|
declare const ConfirmationDialog: React.FC<React.PropsWithChildren<ConfirmationDialogProps>>;
|
|
73
|
-
//#endregion
|
|
74
73
|
export { ConfirmationDialog, ConfirmationDialogProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { Dialog } from "../Dialog/Dialog.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/ConfirmationDialog/ConfirmationDialog.tsx
|
|
5
5
|
/**
|
|
6
6
|
* A ConfirmationDialog is a special kind of dialog with more rigid behavior. It
|
|
7
7
|
* is used to confirm a user action. ConfirmationDialogs always have exactly
|
|
@@ -102,5 +102,4 @@ const ConfirmationDialog = (props) => {
|
|
|
102
102
|
} else t13 = $[25];
|
|
103
103
|
return t13;
|
|
104
104
|
};
|
|
105
|
-
//#endregion
|
|
106
105
|
export { ConfirmationDialog };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfirmationDialogProps } from "./ConfirmationDialog.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/ConfirmationDialog/useConfirm.d.ts
|
|
5
5
|
type ConfirmOptions = Omit<ConfirmationDialogProps, 'onClose'> & {
|
|
6
6
|
content: React.ReactNode;
|
|
7
7
|
};
|
|
@@ -11,5 +11,4 @@ type ConfirmOptions = Omit<ConfirmationDialogProps, 'onClose'> & {
|
|
|
11
11
|
* resolved with `true` or `false` depending on whether or not the confirm button was used.
|
|
12
12
|
*/
|
|
13
13
|
declare function useConfirm(): (options: ConfirmOptions) => Promise<boolean>;
|
|
14
|
-
//#endregion
|
|
15
14
|
export { ConfirmOptions, useConfirm };
|
|
@@ -2,7 +2,7 @@ import BaseStyles from "../BaseStyles.js";
|
|
|
2
2
|
import { ConfirmationDialog } from "./ConfirmationDialog.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { createRoot } from "react-dom/client";
|
|
5
|
-
|
|
5
|
+
// src/ConfirmationDialog/useConfirm.ts
|
|
6
6
|
async function confirm(options) {
|
|
7
7
|
const { content, ...confirmationDialogProps } = options;
|
|
8
8
|
return new Promise((resolve) => {
|
|
@@ -31,5 +31,4 @@ function useConfirm() {
|
|
|
31
31
|
function _temp(options) {
|
|
32
32
|
return confirm(options);
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { useConfirm };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/CounterLabel/CounterLabel.d.ts
|
|
4
4
|
type CounterLabelProps = React.PropsWithChildren<HTMLAttributes<HTMLSpanElement> & {
|
|
5
5
|
/** @deprecated use variant instead */scheme?: 'primary' | 'secondary';
|
|
6
6
|
variant?: 'primary' | 'secondary';
|
|
@@ -15,5 +15,4 @@ declare const CounterLabel: React.ForwardRefExoticComponent<HTMLAttributes<HTMLS
|
|
|
15
15
|
} & {
|
|
16
16
|
children?: React.ReactNode | undefined;
|
|
17
17
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
18
|
-
//#endregion
|
|
19
18
|
export { CounterLabelProps, CounterLabel as default };
|
|
@@ -4,7 +4,7 @@ import CounterLabel_module_css_default from "./CounterLabel.module.css.js";
|
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
|
|
7
|
+
// src/CounterLabel/CounterLabel.tsx
|
|
8
8
|
const CounterLabel = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
9
9
|
const $ = c(23);
|
|
10
10
|
let children;
|
|
@@ -87,5 +87,4 @@ const CounterLabel = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
87
87
|
return t6;
|
|
88
88
|
});
|
|
89
89
|
CounterLabel.displayName = "CounterLabel";
|
|
90
|
-
//#endregion
|
|
91
90
|
export { CounterLabel as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "./CounterLabel-8c6e8ee4.css";
|
|
2
|
-
|
|
2
|
+
// src/CounterLabel/CounterLabel.module.css.js
|
|
3
3
|
var CounterLabel_module_css_default = { "CounterLabel": "prc-CounterLabel-CounterLabel-X-kRU" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { CounterLabel_module_css_default as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IsAny, ObjectPaths } from "./utils.js";
|
|
2
|
-
import { DataTableData, DataTableRowGroup, DataTableRowId, UniqueRow } from "./row.js";
|
|
3
|
-
import { SortDirection } from "./sorting.js";
|
|
4
1
|
import { Column } from "./column.js";
|
|
2
|
+
import { SortDirection } from "./sorting.js";
|
|
3
|
+
import { DataTableData, DataTableRowGroup, DataTableRowId, UniqueRow } from "./row.js";
|
|
4
|
+
import { IsAny, ObjectPaths } from "./utils.js";
|
|
5
5
|
import { TableBulkActionsProps } from "./TableBulkActions.js";
|
|
6
6
|
import { ReactElement, ReactNode, RefObject } from "react";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/DataTable/DataTable.d.ts
|
|
9
9
|
interface DataTableBulkActionsContext {
|
|
10
10
|
selectedRows: ReadonlySet<DataTableRowId>;
|
|
11
11
|
selectedCount: number;
|
|
@@ -127,5 +127,4 @@ interface DataTableComponent {
|
|
|
127
127
|
<Input extends DataTableData<UniqueRow>>(props: InferredDataTableProps<Input>): ReactElement;
|
|
128
128
|
}
|
|
129
129
|
declare const DataTable: DataTableComponent;
|
|
130
|
-
//#endregion
|
|
131
130
|
export { DataTable, DataTableBulkActionsContext, DataTableProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
3
2
|
import { useTable } from "./useTable.js";
|
|
4
3
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, TableRowSelection, TableSelectionHeader, TableSortHeader } from "./Table.js";
|
|
5
4
|
import { TableGroup } from "./TableGroup.js";
|
|
6
|
-
import TableBulkActions_module_css_default from "./TableBulkActions.module.css.js";
|
|
7
5
|
import { TableBulkActions } from "./TableBulkActions.js";
|
|
6
|
+
import TableBulkActions_module_css_default from "./TableBulkActions.module.css.js";
|
|
7
|
+
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
8
8
|
import { useId, useRef } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/DataTable/DataTable.tsx
|
|
11
11
|
function defaultGetRowId(row) {
|
|
12
12
|
return row.id;
|
|
13
13
|
}
|
|
@@ -278,5 +278,4 @@ function DataTableImplementation(t0) {
|
|
|
278
278
|
return t14;
|
|
279
279
|
}
|
|
280
280
|
const DataTable = DataTableImplementation;
|
|
281
|
-
//#endregion
|
|
282
281
|
export { DataTable };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/DataTable/ErrorDialog.d.ts
|
|
4
4
|
type TableErrorDialogProps = React.PropsWithChildren<{
|
|
5
5
|
/**
|
|
6
6
|
* Provide an optional title for the dialog
|
|
@@ -22,5 +22,4 @@ declare function ErrorDialog({
|
|
|
22
22
|
onRetry,
|
|
23
23
|
onDismiss
|
|
24
24
|
}: TableErrorDialogProps): React.JSX.Element;
|
|
25
|
-
//#endregion
|
|
26
25
|
export { ErrorDialog, TableErrorDialogProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { ConfirmationDialog } from "../ConfirmationDialog/ConfirmationDialog.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/DataTable/ErrorDialog.tsx
|
|
5
5
|
function ErrorDialog(t0) {
|
|
6
6
|
const $ = c(7);
|
|
7
7
|
const { title: t1, children, onRetry, onDismiss } = t0;
|
|
@@ -32,5 +32,4 @@ function ErrorDialog(t0) {
|
|
|
32
32
|
} else t3 = $[6];
|
|
33
33
|
return t3;
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { ErrorDialog };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/DataTable/Pagination.d.ts
|
|
5
5
|
type PaginationProps = Omit<React.ComponentPropsWithoutRef<'nav'>, 'onChange'> & {
|
|
6
6
|
/**
|
|
7
7
|
* Provide a label for the navigation landmark rendered by this component
|
|
@@ -49,5 +49,4 @@ type PaginationState = {
|
|
|
49
49
|
*/
|
|
50
50
|
pageIndex: number;
|
|
51
51
|
};
|
|
52
|
-
//#endregion
|
|
53
52
|
export { Pagination, PaginationProps };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
+
import { Button } from "../internal/components/ButtonReset.js";
|
|
2
3
|
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
3
4
|
import { VisuallyHidden } from "../VisuallyHidden/VisuallyHidden.js";
|
|
4
5
|
import { warning } from "../utils/warning.js";
|
|
5
6
|
import { viewportRanges } from "../hooks/useResponsiveValue.js";
|
|
6
7
|
import { buildPaginationModel } from "../Pagination/model.js";
|
|
7
|
-
import { Button } from "../internal/components/ButtonReset.js";
|
|
8
8
|
import Pagination_module_css_default from "./Pagination.module.css.js";
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { clsx } from "clsx";
|
|
12
12
|
import { ChevronLeftIcon, ChevronRightIcon } from "@primer/octicons-react";
|
|
13
|
-
|
|
13
|
+
// src/DataTable/Pagination.tsx
|
|
14
14
|
const defaultShowPages = { narrow: false };
|
|
15
15
|
function Pagination(t0) {
|
|
16
16
|
const $ = c(60);
|
|
@@ -473,5 +473,4 @@ function usePagination(config) {
|
|
|
473
473
|
} else t4 = $[23];
|
|
474
474
|
return t4;
|
|
475
475
|
}
|
|
476
|
-
//#endregion
|
|
477
476
|
export { Pagination };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Pagination-aebe86e8.css";
|
|
2
|
-
|
|
2
|
+
// src/DataTable/Pagination.module.css.js
|
|
3
3
|
var Pagination_module_css_default = {
|
|
4
4
|
"TablePagination": "prc-DataTable-TablePagination-AJ0K7",
|
|
5
5
|
"TablePaginationSteps": "prc-DataTable-TablePaginationSteps-Vxbth",
|
|
@@ -9,5 +9,4 @@ var Pagination_module_css_default = {
|
|
|
9
9
|
"TablePaginationPage": "prc-DataTable-TablePaginationPage-Fn3s-",
|
|
10
10
|
"TablePaginationTruncationStep": "prc-DataTable-TablePaginationTruncationStep-gRyLp"
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { Pagination_module_css_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PolymorphicProps } from "../utils/modern-polymorphic.js";
|
|
2
|
-
import { UniqueRow } from "./row.js";
|
|
3
1
|
import { CellAlignment, Column } from "./column.js";
|
|
2
|
+
import { UniqueRow } from "./row.js";
|
|
3
|
+
import { PolymorphicProps } from "../utils/modern-polymorphic.js";
|
|
4
4
|
import React, { JSX } from "react";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/DataTable/Table.d.ts
|
|
7
7
|
type TableProps = React.ComponentPropsWithoutRef<'table'> & {
|
|
8
8
|
/**
|
|
9
9
|
* Provide an id to an element which uniquely describes this table
|
|
@@ -232,5 +232,4 @@ declare function TableSkeleton<Data extends UniqueRow>({
|
|
|
232
232
|
rows,
|
|
233
233
|
...rest
|
|
234
234
|
}: TableSkeletonProps<Data>): JSX.Element;
|
|
235
|
-
//#endregion
|
|
236
235
|
export { Table, TableActions, TableActionsProps, TableBody, TableBodyProps, TableCell, TableCellPlaceholder, TableCellProps, TableContainer, TableContainerProps, TableDivider, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, TableRowSelection, TableRowSelectionProps, TableSelectionHeader, TableSelectionHeaderProps, TableSkeleton, TableSkeletonProps, TableSubtitle, TableSubtitleProps, TableTitle, TableTitleProps };
|