UNPKG

@arcgis/map-components

Version:
21 lines (20 loc) 696 B
import { classes as i } from "@arcgis/components-utils"; import { safeClassMap as o } from "@arcgis/lumina"; import { unsafeStatic as l, html as m } from "lit/static-html.js"; import { g as c } from "./globalCss.js"; /*! All material copyright Esri, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. v4.33.13 */ function d({ level: a, class: t, children: e }) { const n = g(a), s = `h${n}`, r = l(s); return m`<${r} .ariaLevel=${String(n)} class=${o(i(c.heading, t))} role=heading>${e}</${r}>`; } function f(a, t, e) { return Math.min(Math.max(a, t), e); } function g(a) { return f(Math.ceil(a), 1, 6); } export { d as H };