UNPKG

@arcgis/map-components

Version:
18 lines (17 loc) 665 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */ import { html as s } from "lit"; import { nothing as o, safeClassMap as m } from "@arcgis/lumina"; import { g as l } from "./globalCss.js"; import { V as d } from "./visible-element.js"; import { H as c } from "./heading.js"; function b(e) { const { children: r, hideHeader: t, headingLevel: a = 2, label: n, title: i } = e; return s`<div aria-label=${n ?? o} class=${m({ ...typeof e.class == "string" ? { [e.class]: !0 } : e.class, [l.widget]: !0, [l.panel]: !0 })} role=presentation>${d({ hidden: t || !i, children: c({ level: a, children: i }) })}${r}</div>`; } export { b as C };