@@ -17,29 +17,37 @@ import Icon from '../../elements/Icon'
1717import Label from '../../elements/Label'
1818
1919export const htmlInputPropNames = [
20- // React
21- 'selected' ,
22- 'defaultValue' ,
23- 'defaultChecked' ,
24-
25- // Limited HTML props
26- 'autoComplete' ,
27- 'autoFocus' ,
28- 'checked' ,
29- // 'disabled', do not pass (duplicates SUI CSS opacity rule)
30- 'form' ,
31- 'max' ,
32- 'maxLength' ,
33- 'min' ,
34- 'name' ,
35- 'onChange' ,
36- 'pattern' ,
37- 'placeholder' ,
38- 'readOnly' ,
39- 'required' ,
40- 'step' ,
41- 'type' ,
42- 'value' ,
20+ // REACT
21+ 'selected' , 'defaultValue' , 'defaultChecked' ,
22+
23+ // LIMITED HTML PROPS
24+ 'autoComplete' , 'autoFocus' , 'checked' , 'form' , 'max' , 'maxLength' , 'min' ,
25+ 'name' , 'pattern' , 'placeholder' , 'readOnly' , 'required' , 'step' , 'type' , 'value' ,
26+
27+ // Heads Up!
28+ // Do not pass disabled, it duplicates the SUI CSS opacity rule.
29+ // 'disabled',
30+
31+ // EVENTS
32+ // keyboard
33+ 'onKeyDown' , 'onKeyPress' , 'onKeyUp' ,
34+
35+ // focus
36+ 'onFocus' , 'onBlur' ,
37+
38+ // form
39+ 'onChange' , 'onInput' ,
40+
41+ // mouse
42+ 'onClick' , 'onContextMenu' ,
43+ 'onDrag' , 'onDragEnd' , 'onDragEnter' , 'onDragExit' , 'onDragLeave' , 'onDragOver' , 'onDragStart' , 'onDrop' ,
44+ 'onMouseDown' , 'onMouseEnter' , 'onMouseLeave' , 'onMouseMove' , 'onMouseOut' , 'onMouseOver' , 'onMouseUp' ,
45+
46+ // selection
47+ 'onSelect' ,
48+
49+ // touch
50+ 'onTouchCancel' , 'onTouchEnd' , 'onTouchMove' , 'onTouchStart' ,
4351]
4452
4553const _meta = {
0 commit comments