@bloom-housing/ui-components
Advanced tools
Comparing version 0.0.10 to 0.1.0
@@ -21,2 +21,7 @@ /* Atoms */ | ||
/* Forms */ | ||
export * from "./src/forms/ErrorMessage" | ||
export * from "./src/forms/Field" | ||
export * from "./src/forms/MultistepProgress" | ||
/* Headers */ | ||
@@ -31,2 +36,3 @@ export * from "./src/headers/Hero/Hero" | ||
export * from "./src/helpers/localeRoute" | ||
export * from "./src/helpers/nextjs" | ||
export * from "./src/helpers/numberOrdinal" | ||
@@ -33,0 +39,0 @@ export * from "./src/helpers/occupancyFormatting" |
{ | ||
"name": "@bloom-housing/ui-components", | ||
"version": "0.0.10", | ||
"version": "0.1.0", | ||
"description": "Shared user interface components for Bloom affordable housing system", | ||
@@ -60,3 +60,3 @@ "homepage": "https://github.com/bloom-housing/bloom/tree/master/shared/ui-components", | ||
"dependencies": { | ||
"@bloom-housing/core": "0.0.10", | ||
"@bloom-housing/core": "^0.1.0", | ||
"@types/node": "^12.12.31", | ||
@@ -71,3 +71,4 @@ "@types/node-polyglot": "^0.4.34", | ||
"tailwindcss": "^1.3" | ||
} | ||
}, | ||
"gitHead": "af25f65b3d5726b8ff81e091d4b3e1bac8a2d3ec" | ||
} |
/* eslint-env node */ | ||
module.exports = { | ||
theme: { | ||
@@ -6,0 +5,0 @@ screens: { |
@@ -5,3 +5,15 @@ /* eslint-env node */ | ||
const bloomColorVars = Object.keys(bloomTheme.theme.colors).map(colorKey => { | ||
return "$tailwind-" + colorKey + ": " + bloomTheme.theme.colors[colorKey] + ";" | ||
if (typeof bloomTheme.theme.colors[colorKey] == "object") { | ||
// create a map varaible that can be used by the map-get SCSS function | ||
let colorMap = "$tailwind-" + colorKey + ": (" | ||
colorMap += Object.keys(bloomTheme.theme.colors[colorKey]) | ||
.map(colorMapKey => { | ||
return `${colorMapKey}: ${bloomTheme.theme.colors[colorKey][colorMapKey]}` | ||
}) | ||
.join(", ") | ||
return colorMap + ");" | ||
} else { | ||
// return a simple variable | ||
return "$tailwind-" + colorKey + ": " + bloomTheme.theme.colors[colorKey] + ";" | ||
} | ||
}) | ||
@@ -11,2 +23,6 @@ const bloomScreenVars = Object.keys(bloomTheme.theme.screens).map(screenKey => { | ||
}) | ||
// Uncomment this if you want to debug: | ||
// console.log(bloomColorVars.concat(bloomScreenVars).join("\n")) | ||
return bloomColorVars.concat(bloomScreenVars).join("\n") | ||
@@ -13,0 +29,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15288720
185
203429
+ Added@bloom-housing/core@0.1.1(transitive)
- Removed@bloom-housing/core@0.0.10(transitive)
Updated@bloom-housing/core@^0.1.0