@@ -27,7 +27,7 @@ import { TextInputHint } from './TextInput'
27
27
/** Simple non-generic props shared with ComboboxField */
28
28
export type ComboboxBaseProps = {
29
29
description ?: React . ReactNode
30
- isDisabled ?: boolean
30
+ disabled ?: boolean
31
31
isLoading ?: boolean
32
32
items : Array < { label : string ; value : string } >
33
33
label : string
@@ -64,7 +64,7 @@ export const Combobox = ({
64
64
tooltipText,
65
65
required,
66
66
hasError,
67
- isDisabled ,
67
+ disabled ,
68
68
isLoading,
69
69
onChange,
70
70
onInputChange,
@@ -90,7 +90,7 @@ export const Combobox = ({
90
90
onChange = { ( val ) => onChange ( val || '' ) }
91
91
onClose = { ( ) => setQuery ( '' ) }
92
92
defaultValue = { selected }
93
- disabled = { isDisabled || isLoading }
93
+ disabled = { disabled || isLoading }
94
94
>
95
95
{ label && (
96
96
// TODO: FieldLabel needs a real ID
@@ -113,10 +113,10 @@ export const Combobox = ({
113
113
? 'focus-error border-error-secondary hover:border-error'
114
114
: 'border-default hover:border-hover' ,
115
115
hasError && 'data-[open]:ring-error-secondary' ,
116
- isDisabled
116
+ disabled
117
117
? 'cursor-not-allowed text-disabled bg-disabled !border-default'
118
118
: 'bg-default' ,
119
- isDisabled && hasError && '!border-error-secondary'
119
+ disabled && hasError && '!border-error-secondary'
120
120
) }
121
121
>
122
122
< ComboboxInput
@@ -127,10 +127,10 @@ export const Combobox = ({
127
127
onInputChange ?.( event . target . value )
128
128
} }
129
129
placeholder = { placeholder }
130
- disabled = { isDisabled || isLoading }
130
+ disabled = { disabled || isLoading }
131
131
className = { cn (
132
132
`w-full rounded !border-none px-3 py-[0.5rem] !outline-none text-sans-md text-default placeholder:text-quaternary` ,
133
- isDisabled
133
+ disabled
134
134
? 'cursor-not-allowed text-disabled bg-disabled !border-default'
135
135
: 'bg-default' ,
136
136
hasError && 'focus-error'
0 commit comments