native-base
Version:
Essential cross-platform UI components for React Native
93 lines (89 loc) • 1.77 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FormControlHelperText = exports.FormControlLabel = exports.FormControlErrorMessage = exports.FormControl = void 0;
// FormControl
const FormControl = {
baseStyle: {
width: '100%'
}
}; // FormControlErrorMessage
exports.FormControl = FormControl;
const FormControlErrorMessage = {
baseStyle: () => {
return {
mt: '2',
_text: {
fontSize: 'xs'
},
_stack: {
space: 1,
alignItems: 'center'
},
_light: {
_text: {
color: 'error.600'
}
},
_dark: {
_text: {
color: 'error.500'
}
}
};
}
}; // FormControlLabel
exports.FormControlErrorMessage = FormControlErrorMessage;
const FormControlLabel = {
baseStyle: () => {
return {
flexDirection: 'row',
justifyContent: 'flex-start',
_text: {
fontSize: 'sm',
fontWeight: 'medium'
},
my: '1',
_light: {
_text: {
color: 'text.500'
},
_astrick: {
color: 'error.600'
}
},
_dark: {
_text: {
color: 'text.400'
},
_astrick: {
color: 'error.500'
}
}
};
}
}; // FormControlHelperText
exports.FormControlLabel = FormControlLabel;
const FormControlHelperText = {
baseStyle: () => {
return {
mt: '2',
_text: {
fontSize: 'xs'
},
_light: {
_text: {
color: 'text.500'
}
},
_dark: {
_text: {
color: 'text.400'
}
}
};
}
};
exports.FormControlHelperText = FormControlHelperText;
//# sourceMappingURL=form-control.js.map
;