UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

27 lines 992 B
/** * 2024-09-07: Migrated from the same folder in fps-library-v2/common/commandStyles/... */ import { bannerThemeChoices } from "./defaults"; export const bannerThemeChoicesWSiteTheme = [ ...bannerThemeChoices, { index: 15, key: 'siteDark', text: "Site Theme - Dark bar" }, { index: 16, key: 'siteLight', text: "Site Theme - Light bar" }, { index: 17, key: 'sitePrimary', text: "Site Theme - Primary color" }, ]; export function getThemeClass(choice, themes) { if (choice.toLowerCase().indexOf('light') > -1) { return themes.light; } else if (choice.toLowerCase().indexOf('dark') > -1) { return themes.dark; } else if (choice.toLowerCase().indexOf('primary') > -1) { return themes.dark; } else return `InvalidSiteThemeClass`; } export function check4SiteTheme(choice) { return choice.toLowerCase().indexOf('site') > -1 ? true : false; } //# sourceMappingURL=ISiteThemeChoices.js.map