From 9e069d155f668140953e83b634a42c788c022915 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 7 Feb 2025 11:55:21 +0100 Subject: [PATCH] Rename. --- packages/components/src/circular-option-picker/index.tsx | 2 +- packages/components/src/circular-option-picker/utils.tsx | 2 +- packages/components/src/color-palette/index.tsx | 4 ++-- packages/components/src/duotone-picker/duotone-picker.tsx | 4 ++-- packages/components/src/gradient-picker/index.tsx | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/components/src/circular-option-picker/index.tsx b/packages/components/src/circular-option-picker/index.tsx index 0eca8b025d92c6..ef379994b476f5 100644 --- a/packages/components/src/circular-option-picker/index.tsx +++ b/packages/components/src/circular-option-picker/index.tsx @@ -9,6 +9,6 @@ export { ButtonAction, DropdownLinkAction, } from './circular-option-picker-actions'; -export { useComputeCircularOptionPickerCommonProps } from './utils'; +export { getComputeCircularOptionPickerCommonProps } from './utils'; export default CircularOptionPicker; diff --git a/packages/components/src/circular-option-picker/utils.tsx b/packages/components/src/circular-option-picker/utils.tsx index 2496ee6478ef0f..fcb3b2bcac3695 100644 --- a/packages/components/src/circular-option-picker/utils.tsx +++ b/packages/components/src/circular-option-picker/utils.tsx @@ -6,7 +6,7 @@ import { __ } from '@wordpress/i18n'; /** * Computes the common props for the CircularOptionPicker. */ -export function useComputeCircularOptionPickerCommonProps( +export function getComputeCircularOptionPickerCommonProps( asButtons?: boolean, loop?: boolean, ariaLabel?: string, diff --git a/packages/components/src/color-palette/index.tsx b/packages/components/src/color-palette/index.tsx index 39a143c7c8bf07..d598c6e78c581d 100644 --- a/packages/components/src/color-palette/index.tsx +++ b/packages/components/src/color-palette/index.tsx @@ -20,7 +20,7 @@ import { useCallback, useMemo, useState, forwardRef } from '@wordpress/element'; import Dropdown from '../dropdown'; import { ColorPicker } from '../color-picker'; import CircularOptionPicker, { - useComputeCircularOptionPickerCommonProps, + getComputeCircularOptionPickerCommonProps, } from '../circular-option-picker'; import { VStack } from '../v-stack'; import { Truncate } from '../truncate'; @@ -253,7 +253,7 @@ function UnforwardedColorPalette( ); - const { metaProps, labelProps } = useComputeCircularOptionPickerCommonProps( + const { metaProps, labelProps } = getComputeCircularOptionPickerCommonProps( asButtons, loop, ariaLabel, diff --git a/packages/components/src/duotone-picker/duotone-picker.tsx b/packages/components/src/duotone-picker/duotone-picker.tsx index cf50fe85c356ba..a21d12b73a65c4 100644 --- a/packages/components/src/duotone-picker/duotone-picker.tsx +++ b/packages/components/src/duotone-picker/duotone-picker.tsx @@ -14,7 +14,7 @@ import { __, sprintf } from '@wordpress/i18n'; */ import ColorListPicker from './color-list-picker'; import CircularOptionPicker, { - useComputeCircularOptionPickerCommonProps, + getComputeCircularOptionPickerCommonProps, } from '../circular-option-picker'; import { VStack } from '../v-stack'; @@ -129,7 +129,7 @@ function DuotonePicker( { ); } ); - const { metaProps, labelProps } = useComputeCircularOptionPickerCommonProps( + const { metaProps, labelProps } = getComputeCircularOptionPickerCommonProps( asButtons, loop, ariaLabel, diff --git a/packages/components/src/gradient-picker/index.tsx b/packages/components/src/gradient-picker/index.tsx index 1321fce4b6fa09..63867f5e970a47 100644 --- a/packages/components/src/gradient-picker/index.tsx +++ b/packages/components/src/gradient-picker/index.tsx @@ -9,7 +9,7 @@ import { useCallback, useMemo } from '@wordpress/element'; * Internal dependencies */ import CircularOptionPicker, { - useComputeCircularOptionPickerCommonProps, + getComputeCircularOptionPickerCommonProps, } from '../circular-option-picker'; import CustomGradientPicker from '../custom-gradient-picker'; import { VStack } from '../v-stack'; @@ -130,7 +130,7 @@ function Component( props: PickerProps< any > ) { ); - const { metaProps, labelProps } = useComputeCircularOptionPickerCommonProps( + const { metaProps, labelProps } = getComputeCircularOptionPickerCommonProps( asButtons, loop, ariaLabel,