- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
15 lines
314 B
JavaScript
15 lines
314 B
JavaScript
'use strict';
|
|
|
|
function lazyDisclosure(options) {
|
|
const { wasSelected, enabled, isSelected, mode = "unmount" } = options;
|
|
if (!enabled)
|
|
return true;
|
|
if (isSelected)
|
|
return true;
|
|
if (mode === "keepMounted" && wasSelected)
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
exports.lazyDisclosure = lazyDisclosure;
|