@nexara/nativeflow
Version:
Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.
18 lines (17 loc) • 702 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const generateColors = (theme, isError, cursorColor, placeholderColor, labelColor) => {
const computedCursorColor = isError ? theme.colors.semantic.danger : cursorColor ?? theme.colors.brand.primary;
const computedPlaceholderColor = placeholderColor ?? theme.colors.typography.tertiary;
const computedLabelColor = isError ? theme.colors.semantic.danger : labelColor ?? theme.colors.typography.primary;
return {
computedCursorColor,
computedPlaceholderColor,
computedLabelColor
};
};
var _default = exports.default = generateColors;
//# sourceMappingURL=generateColors.js.map