1- import {
2- type ComponentProps ,
3- type ComponentPropsWithoutRef ,
4- type ReactNode ,
5- forwardRef ,
6- useMemo ,
7- } from 'react'
1+ import { type ComponentProps , type ReactNode , forwardRef , useMemo } from 'react'
82import { tv } from 'tailwind-variants'
93
104import { InputWithTooltip } from '../InputWithTooltip'
@@ -14,7 +8,6 @@ import { SearchInputIcon } from './SearchInputIcon'
148type Props = Omit < ComponentProps < typeof InputWithTooltip > , 'tooltipMessage' | 'prefix' > & {
159 /** 入力欄の説明を紐付けるツールチップに表示するメッセージ */
1610 tooltipMessage : ReactNode
17- decorators ?: ComponentPropsWithoutRef < typeof SearchInputIcon > [ 'decorators' ]
1811}
1912
2013const classNameGenerator = tv ( {
@@ -33,7 +26,7 @@ const classNameGenerator = tv({
3326} )
3427
3528export const SearchInput = forwardRef < HTMLInputElement , Props > (
36- ( { decorators , width, className, ...rest } , ref ) => {
29+ ( { width, className, ...rest } , ref ) => {
3730 const labelStyle = useMemo (
3831 ( ) => ( {
3932 width : typeof width === 'number' ? `${ width } px` : width ,
@@ -54,7 +47,7 @@ export const SearchInput = forwardRef<HTMLInputElement, Props>(
5447 < InputWithTooltip
5548 { ...rest }
5649 ref = { ref }
57- prefix = { < SearchInputIcon decorators = { decorators } /> }
50+ prefix = { < SearchInputIcon /> }
5851 className = { classNames . input }
5952 />
6053 </ label >
0 commit comments