@zohodesk/components
Version:
In this Package, we Provide Some Basic Components to Build Web App
53 lines • 1.83 kB
JavaScript
import PropTypes from 'prop-types';
export const propTypes = {
autofocus: PropTypes.bool,
borderColor: PropTypes.oneOf(['transparent', 'default']),
dataId: PropTypes.string,
id: PropTypes.string,
inputRef: PropTypes.func,
isClickable: PropTypes.bool,
isDisabled: PropTypes.bool,
isReadOnly: PropTypes.bool,
maxLength: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
name: PropTypes.string,
needAppearance: PropTypes.bool,
needBorder: PropTypes.bool,
needEffect: PropTypes.bool,
needReadOnlyStyle: PropTypes.bool,
onBlur: PropTypes.func,
onChange: PropTypes.func,
onClick: PropTypes.func,
onFocus: PropTypes.func,
onKeyDown: PropTypes.func,
onKeyPress: PropTypes.func,
onKeyUp: PropTypes.func,
onMouseDown: PropTypes.func,
placeHolder: PropTypes.string,
size: PropTypes.oneOf(['small', 'xsmall', 'medium', 'xmedium']),
type: PropTypes.oneOf(['text', 'password', 'number']),
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
variant: PropTypes.oneOf(['primary', 'secondary', 'default', 'light']),
customClass: PropTypes.string,
htmlId: PropTypes.string,
a11y: PropTypes.shape({
role: PropTypes.string,
ariaAutocomplete: PropTypes.string,
ariaControls: PropTypes.string,
ariaDescribedby: PropTypes.string,
ariaExpanded: PropTypes.bool,
ariaLabel: PropTypes.string,
ariaHaspopup: PropTypes.bool,
ariaRequired: PropTypes.bool,
ariaLabelledby: PropTypes.string,
ariaInvalid: PropTypes.bool,
ariaOwns: PropTypes.string,
ariaActivedescendant: PropTypes.string,
ariaReadonly: PropTypes.bool,
ariaMultiselectable: PropTypes.bool
}),
isFocus: PropTypes.bool,
isScrollPrevent: PropTypes.bool,
customProps: PropTypes.object,
dataSelectorId: PropTypes.string,
autoComplete: PropTypes.bool
};