@os-design/website
Advanced tools
Comparing version 0.0.57 to 0.0.58
@@ -17,3 +17,4 @@ import { BaseProps } from '@os-design/styled'; | ||
declare const Navigation: React.FC<NavigationProps>; | ||
export { NAVIGATION_MOBILE_HEIGHT_EM, renderGlobalPaddingBottom } from './NavigationMobile'; | ||
export default Navigation; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,3 +17,6 @@ "use strict"; | ||
}; | ||
var NavigationMobile_2 = require("./NavigationMobile"); | ||
exports.NAVIGATION_MOBILE_HEIGHT_EM = NavigationMobile_2.NAVIGATION_MOBILE_HEIGHT_EM; | ||
exports.renderGlobalPaddingBottom = NavigationMobile_2.renderGlobalPaddingBottom; | ||
exports.default = Navigation; | ||
//# sourceMappingURL=index.js.map |
@@ -7,4 +7,5 @@ import React from 'react'; | ||
export declare const NAVIGATION_MOBILE_HEIGHT_EM = 3; | ||
export declare const renderGlobalPaddingBottom: () => JSX.Element; | ||
declare const NavigationMobile: React.FC<NavigationMobileProps>; | ||
export default NavigationMobile; | ||
//# sourceMappingURL=NavigationMobile.d.ts.map |
@@ -53,11 +53,10 @@ "use strict"; | ||
`; | ||
exports.renderGlobalPaddingBottom = () => (react_1.default.createElement(core_2.Global, { styles: globalPaddingBottom })); | ||
const NavigationMobile = props => { | ||
const renderItems = () => props.items.map(item => (react_1.default.createElement(NavigationMobileListItem_1.default, Object.assign({ tabDarkMode: props.tabDarkMode, link: props.link, isActive: !!props.pathname && props.pathname.endsWith(item.href), key: item.href }, item)))); | ||
return (react_1.default.createElement(react_1.default.Fragment, null, | ||
react_1.default.createElement(core_1.Portal, null, | ||
react_1.default.createElement(NavigationMobileContainer, { tabDarkMode: props.tabDarkMode }, | ||
react_1.default.createElement(NavigationMobileList, null, renderItems()))), | ||
react_1.default.createElement(core_2.Global, { styles: globalPaddingBottom }))); | ||
return (react_1.default.createElement(core_1.Portal, null, | ||
react_1.default.createElement(NavigationMobileContainer, { tabDarkMode: props.tabDarkMode }, | ||
react_1.default.createElement(NavigationMobileList, null, renderItems())))); | ||
}; | ||
exports.default = NavigationMobile; | ||
//# sourceMappingURL=NavigationMobile.js.map |
{ | ||
"name": "@os-design/website", | ||
"version": "0.0.57", | ||
"version": "0.0.58", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "34ab898e2c49a21851974cfa5b9d0bce328302dc" | ||
"gitHead": "f913626f31dbe21648db4c4528dce6de6ed817b0" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87579
1200