UNPKG

@oxyhq/services

Version:

OxyHQ Expo/React Native SDK — UI components, screens, and native features

84 lines (79 loc) 2.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useIconColor = exports.getIconColors = exports.getIconColor = exports.IconColorMap = void 0; var _theme = require("./theme.js"); /** * Icon color helpers and semantic mappings * Provides easy access to icon colors from the theme system */ /** * Get icon colors for a specific theme */ const getIconColors = theme => { return _theme.Colors[theme]; }; /** * Semantic icon color mappings * Maps common icon types to their appropriate theme colors */ exports.getIconColors = getIconColors; const IconColorMap = exports.IconColorMap = { // Profile and personal information profile: 'iconPersonalInfo', personalInfo: 'iconPersonalInfo', editProfile: 'iconPersonalInfo', // Security and authentication security: 'iconSecurity', password: 'iconSecurity', lock: 'iconSecurity', shield: 'iconSecurity', // Documents and rules document: 'iconSecurity', rules: 'iconSecurity', file: 'iconSecurity', // Premium and special features premium: 'iconPayments', star: 'iconPayments', leaderboard: 'iconPayments', trophy: 'iconPayments', // Rewards and gifts rewards: 'iconPayments', gift: 'iconStorage', // Notifications and warnings notifications: 'iconStorage', warning: 'iconStorage', bell: 'iconStorage', // Help and FAQ help: 'iconPersonalInfo', faq: 'iconPersonalInfo', question: 'iconPersonalInfo', // Data and privacy data: 'iconData', privacy: 'iconData', settings: 'iconData', // Sharing and social sharing: 'iconSharing', social: 'iconSharing', // Primary actions primary: 'iconPrimary', home: 'iconHome' }; /** * Get icon color by semantic name */ const getIconColor = (semanticName, theme = 'light') => { const colorKey = IconColorMap[semanticName]; const colors = getIconColors(theme); return colors[colorKey]; }; /** * Helper to get icon color for common use cases */ exports.getIconColor = getIconColor; const useIconColor = (semanticName, theme) => { return getIconColor(semanticName, theme); }; exports.useIconColor = useIconColor; //# sourceMappingURL=iconColors.js.map