/*! * All material copyright ESRI, All Rights Reserved, unless otherwise specified. * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details. * v1.0.0-beta.97 */ 'use strict'; const index = require('./index-a0010f96.js'); function constrainHeadingLevel(level) { return Math.min(Math.max(Math.ceil(level), 1), 6); } const Heading = (props, children) => { const HeadingTag = `h${props.level}`; delete props.level; return index.h(HeadingTag, { ...props }, children); }; exports.Heading = Heading; exports.constrainHeadingLevel = constrainHeadingLevel;