@os-design/app
Advanced tools
Comparing version 0.0.127 to 0.0.128
@@ -60,11 +60,11 @@ "use strict"; | ||
const bodyFontSize = utils_1.useBodyFontSize(); | ||
const isMd = utils_1.useIsMd(); | ||
const isMinMd = utils_1.useIsMinWidth('md'); | ||
const getHeaderIndent = react_1.useCallback(() => { | ||
const headerHeightEm = isMd ? core_1.HEADER_HEIGHT_MD_EM : core_1.HEADER_HEIGHT_EM; | ||
const headerHeightEm = isMinMd ? core_1.HEADER_HEIGHT_MD_EM : core_1.HEADER_HEIGHT_EM; | ||
return headerHeightEm * bodyFontSize; | ||
}, [bodyFontSize, isMd]); | ||
}, [bodyFontSize, isMinMd]); | ||
const getNavigationIndent = react_1.useCallback(() => { | ||
const navigationHeightEm = isMd ? 0 : NavigationBottom_1.NAVIGATION_BOTTOM_HEIGHT_EM; | ||
const navigationHeightEm = isMinMd ? 0 : NavigationBottom_1.NAVIGATION_BOTTOM_HEIGHT_EM; | ||
return navigationHeightEm * bodyFontSize; | ||
}, [bodyFontSize, isMd]); | ||
}, [bodyFontSize, isMinMd]); | ||
let hasList = false; | ||
@@ -71,0 +71,0 @@ react_1.default.Children.forEach(props.children, child => { |
{ | ||
"name": "@os-design/app", | ||
"version": "0.0.127", | ||
"version": "0.0.128", | ||
"license": "UNLICENSED", | ||
@@ -20,6 +20,6 @@ "main": "lib/index.js", | ||
"@emotion/core": "^10.0.28", | ||
"@os-design/core": "^0.0.183", | ||
"@os-design/core": "^0.0.184", | ||
"@os-design/icons": "^0.0.33", | ||
"@os-design/styled": "^0.0.14", | ||
"@os-design/utils": "^0.0.24" | ||
"@os-design/utils": "^0.0.25" | ||
}, | ||
@@ -33,3 +33,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "bb555cc93b0d15c3e8eae2920cdc8132814290a8" | ||
"gitHead": "b3c1cf93f30185090cfb08665d254e8af73dbf67" | ||
} |
Sorry, the diff of this file is not supported yet
13615
+ Added@os-design/core@0.0.184(transitive)
+ Added@os-design/utils@0.0.25(transitive)
- Removed@os-design/core@0.0.183(transitive)
- Removed@os-design/utils@0.0.24(transitive)
Updated@os-design/core@^0.0.184
Updated@os-design/utils@^0.0.25