@@ -2794,11 +2794,9 @@ export type ButtonBaseProps = Required<
2794
2794
| 'target'
2795
2795
| 'href'
2796
2796
| 'download'
2797
- | 'onBlur'
2798
- | 'onClick'
2799
- | 'onFocus'
2800
2797
>
2801
- > ;
2798
+ > &
2799
+ Pick < ButtonOnlyProps , 'onBlur' | 'onClick' | 'onFocus' > ;
2802
2800
export interface ButtonProps extends ButtonBaseProps {
2803
2801
tone : Extract < ButtonProps$1 [ 'tone' ] , 'neutral' | 'critical' | 'auto' > ;
2804
2802
icon : IconProps [ 'type' ] ;
@@ -2856,24 +2854,24 @@ declare module 'preact' {
2856
2854
}
2857
2855
2858
2856
declare const internals : unique symbol ;
2859
- export type InputProps = Required <
2857
+ export type InputElementInputProps = Required <
2860
2858
Pick < TextFieldProps , 'disabled' | 'id' | 'name' | 'value' >
2861
2859
> ;
2862
2860
declare class PreactInputElement
2863
2861
extends PreactCustomElement
2864
- implements InputProps
2862
+ implements InputElementInputProps
2865
2863
{
2866
2864
static formAssociated : boolean ;
2867
2865
/** @private */
2868
2866
[ internals ] : ElementInternals ;
2869
2867
protected getDefaultValue ( ) : string ;
2870
2868
accessor onchange : EventListener | null ;
2871
2869
accessor oninput : EventListener | null ;
2872
- accessor disabled : InputProps [ 'disabled' ] ;
2873
- accessor id : InputProps [ 'id' ] ;
2874
- accessor name : InputProps [ 'name' ] ;
2875
- get value ( ) : InputProps [ 'value' ] ;
2876
- set value ( value : InputProps [ 'value' ] ) ;
2870
+ accessor disabled : InputElementInputProps [ 'disabled' ] ;
2871
+ accessor id : InputElementInputProps [ 'id' ] ;
2872
+ accessor name : InputElementInputProps [ 'name' ] ;
2873
+ get value ( ) : InputElementInputProps [ 'value' ] ;
2874
+ set value ( value : InputElementInputProps [ 'value' ] ) ;
2877
2875
constructor ( renderImpl : RenderImpl ) ;
2878
2876
}
2879
2877
@@ -2889,7 +2887,8 @@ export type CheckboxProps = InputProps &
2889
2887
| 'label'
2890
2888
| 'required'
2891
2889
>
2892
- > ;
2890
+ > &
2891
+ Pick < CheckboxProps$1 , 'onChange' | 'onInput' > ;
2893
2892
2894
2893
declare const tagName$i = 'shopify-checkbox' ;
2895
2894
export interface ReactProps$i
@@ -3207,28 +3206,29 @@ export type FieldReactProps = Pick<
3207
3206
declare const tagName$8 = 'shopify-select' ;
3208
3207
export interface ReactProps$8 extends Partial < SharedProps & FieldReactProps > { }
3209
3208
3210
- export type FieldProps < Autocomplete extends string = string > = InputProps &
3211
- Required <
3212
- Pick <
3213
- TextFieldProps ,
3214
- | 'defaultValue'
3215
- | 'details'
3216
- | 'error'
3217
- | 'label'
3218
- | 'placeholder'
3219
- | 'readOnly'
3220
- | 'required'
3221
- >
3222
- > & {
3223
- autocomplete : Autocomplete ;
3224
- } ;
3209
+ export type FieldPropsAutocomplete < Autocomplete extends string = string > =
3210
+ InputProps &
3211
+ Required <
3212
+ Pick <
3213
+ TextFieldProps ,
3214
+ | 'defaultValue'
3215
+ | 'details'
3216
+ | 'error'
3217
+ | 'label'
3218
+ | 'placeholder'
3219
+ | 'readOnly'
3220
+ | 'required'
3221
+ >
3222
+ > & {
3223
+ autocomplete : Autocomplete ;
3224
+ } ;
3225
3225
declare class PreactFieldElement < Autocomplete extends string = string >
3226
3226
extends PreactInputElement
3227
- implements FieldProps < Autocomplete >
3227
+ implements FieldPropsAutocomplete < Autocomplete >
3228
3228
{
3229
3229
accessor onblur : EventListener | null ;
3230
3230
accessor onfocus : EventListener | null ;
3231
- accessor autocomplete : FieldProps < Autocomplete > [ 'autocomplete' ] ;
3231
+ accessor autocomplete : FieldPropsAutocomplete < Autocomplete > [ 'autocomplete' ] ;
3232
3232
accessor defaultValue : FieldProps [ 'defaultValue' ] ;
3233
3233
accessor details : FieldProps [ 'details' ] ;
3234
3234
accessor error : FieldProps [ 'error' ] ;
0 commit comments